mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
gnulib: Use system getprogname on macOS
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
#ifndef GUESTFS_GETPROGNAME
|
||||
#define GUESTFS_GETPROGNAME
|
||||
|
||||
#ifndef HAVE_GETPROGNAME
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
static inline char const *
|
||||
@@ -27,4 +29,6 @@ getprogname (void)
|
||||
return program_invocation_short_name;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* GUESTFS_GETPROGNAME */
|
||||
|
||||
@@ -68,6 +68,7 @@ AC_CHECK_FUNCS([\
|
||||
be32toh \
|
||||
fsync \
|
||||
futimens \
|
||||
getprogname \
|
||||
getxattr \
|
||||
htonl \
|
||||
htons \
|
||||
|
||||
Reference in New Issue
Block a user