Fix for debian Bug#225328 by LaMont Jones <lamont@debian.org>, where
authorAndrew Bartlett <abartlet@samba.org>
Thu, 22 Jan 2004 10:12:26 +0000 (10:12 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 22 Jan 2004 10:12:26 +0000 (10:12 +0000)
the failure of our LFS test caused the _GNU_SOURCE define not to be
added, causeing strndup() not to be defined...

I'll into when we really should define _GNU_SOURCE shortly, but the
fix is correct anyway.

Andrew Bartlett
(This used to be commit aca07f33a2f3cca48b44ac92d3b1b35592ffadc7)

source3/configure.in

index 1f56efe7a6a378edf74f5217444a07130fbe0595..42c4f5c74bd6dc0442f9ee9df5f2d2d043de58ae 100644 (file)
@@ -493,6 +493,8 @@ exit(1);
        AC_TRY_RUN([
 #include <unistd.h>
 #include <sys/utsname.h>
+#include <string.h>
+#include <stdlib.h>
 main() {
 #if _LFS64_LARGEFILE == 1
        struct utsname uts;