diff options
| author | 2018-10-12 15:47:45 +0200 | |
|---|---|---|
| committer | 2018-10-12 15:47:45 +0200 | |
| commit | 21095adeffe6d053c29019f335ceb5c339a15e8b (patch) | |
| tree | 2c0f031ce3dbd8685b99ead9fa74a40ab1e84884 /src | |
| parent | 4f08767fa302bfdd2740ce69398266309aaa8cfb (diff) | |
| download | libusbmuxd-21095adeffe6d053c29019f335ceb5c339a15e8b.tar.gz libusbmuxd-21095adeffe6d053c29019f335ceb5c339a15e8b.tar.bz2 | |
Properly detect availability of program_invocation_short_name and suppress compiler warning
Diffstat (limited to 'src')
| -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); | 
