gnulib: Use system getprogname on macOS

This commit is contained in:
Richard W.M. Jones
2022-08-16 15:28:13 +01:00
parent 908e41e556
commit ef947a9d3b
2 changed files with 5 additions and 0 deletions

View File

@@ -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 */

View File

@@ -68,6 +68,7 @@ AC_CHECK_FUNCS([\
be32toh \
fsync \
futimens \
getprogname \
getxattr \
htonl \
htons \