X-Git-Url: http://git.samba.org/?p=samba.git;a=blobdiff_plain;f=lib%2Freplace%2Freplace.h;h=732a822685824cdeeea95cdaa0c9309a5d1b96a2;hp=de4e20c445417c9bb50ba63ddcb4c450bd8bfd18;hb=c8e27b6f334931d5a609af6b50c9e0756e88b672;hpb=899d00e6be5af48b93c15beb43f7383eeb8508b1 diff --git a/lib/replace/replace.h b/lib/replace/replace.h index de4e20c4454..732a8226858 100644 --- a/lib/replace/replace.h +++ b/lib/replace/replace.h @@ -933,6 +933,11 @@ void rep_setproctitle_init(int argc, char *argv[], char *envp[]); int rep_memset_s(void *dest, size_t destsz, int ch, size_t count); #endif +#ifndef HAVE_GETPROGNAME +#define getprogname rep_getprogname +const char *rep_getprogname(void); +#endif + #ifndef FALL_THROUGH # ifdef HAVE_FALLTHROUGH_ATTRIBUTE # define FALL_THROUGH __attribute__ ((fallthrough))