diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-21 19:44:36 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-24 18:15:13 +0200 |
commit | 881770900938595565036b9b191cfdf39ff0dc98 (patch) | |
tree | 33773c2135530588a73409795a825c3e01aa2707 /src/guestfs.c | |
parent | b9a691af0fa468873eda3706a1c797568857785b (diff) | |
download | libguestfs-881770900938595565036b9b191cfdf39ff0dc98.tar.gz libguestfs-881770900938595565036b9b191cfdf39ff0dc98.tar.xz libguestfs-881770900938595565036b9b191cfdf39ff0dc98.zip |
build: don't define _GNU_SOURCE manually
Now that we're using gnulib in earnest, any manual definition
would provoke a redefinition warning.
* fish/fish.c (_GNU_SOURCE): Don't define.
* fish/destpaths.c (_GNU_SOURCE): Likewise.
* src/guestfs.c (_GNU_SOURCE): Likewise.
* bootstrap (modules): Add asprintf, strchrnul, strerror, strndup
and vasprintf.
* fish/fish.c (main): Set argv[0] to sanitized program_name, so
functions like getopt_long that use argv[0] use the clean name.
Diffstat (limited to 'src/guestfs.c')
-rw-r--r-- | src/guestfs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/guestfs.c b/src/guestfs.c index 204125b9..145f0f39 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -19,7 +19,6 @@ #include <config.h> #define _BSD_SOURCE /* for mkdtemp, usleep */ -#define _GNU_SOURCE /* for vasprintf, GNU strerror_r, strchrnul */ #include <stdio.h> #include <stdlib.h> |