diff options
Diffstat (limited to 'src/libusbmuxd.c')
| -rw-r--r-- | src/libusbmuxd.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c index 39db216..712c362 100644 --- a/src/libusbmuxd.c +++ b/src/libusbmuxd.c @@ -59,7 +59,7 @@  #include <sys/socket.h>  #include <arpa/inet.h>  #include <pthread.h> -#ifdef _GNU_SOURCE +#if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME) && !defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME_ERRNO_H)  extern char *program_invocation_short_name;  #endif  #ifdef __APPLE__ @@ -521,7 +521,7 @@ static void get_prog_name()  	#endif  	}  	free(_pname); -#elif defined (_GNU_SOURCE) +#elif defined (HAVE_PROGRAM_INVOCATION_SHORT_NAME)  	char *pname = program_invocation_short_name;  	if (pname) {  		prog_name = strdup(pname); | 
