summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-21 19:44:36 +0200
committerJim Meyering <meyering@redhat.com>2009-08-24 18:15:13 +0200
commit881770900938595565036b9b191cfdf39ff0dc98 (patch)
tree33773c2135530588a73409795a825c3e01aa2707 /bootstrap
parentb9a691af0fa468873eda3706a1c797568857785b (diff)
downloadlibguestfs-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 'bootstrap')
-rwxr-xr-xbootstrap7
1 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index f5f8aafc..2eba6a71 100755
--- a/bootstrap
+++ b/bootstrap
@@ -50,6 +50,7 @@ gnulib_tool=$GNULIB_SRCDIR/gnulib-tool
(cd daemon && mkdir -p tests lib && ../$gnulib_tool --update)
modules='
+asprintf
closeout
gitlog-to-changelog
gnu-make
@@ -58,8 +59,12 @@ ignore-value
maintainer-makefile
manywarnings
progname
-warnings
+strchrnul
+strerror
+strndup
+vasprintf
vc-list-files
+warnings
'
$gnulib_tool \