summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-22 10:22:47 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-22 10:22:47 +0000
commit77f2465c10db5688a361409a75a20a75bd2e9c51 (patch)
treead4b8e3fa5f46eaef0f710504396f29011fa54a4
parent16f2ddf52ea04d421b4e3b570601906f76368d68 (diff)
downloadsamba-77f2465c10db5688a361409a75a20a75bd2e9c51.tar.gz
samba-77f2465c10db5688a361409a75a20a75bd2e9c51.tar.bz2
samba-77f2465c10db5688a361409a75a20a75bd2e9c51.zip
(merge from 3.0)
Fix for debian Bug#225328 by LaMont Jones <lamont@debian.org>, where the failure of our LFS test on ia64 caused the _GNU_SOURCE define not to be added, causeing strndup() not to be defined... This was due to strdup() bein implicitly declared, and casting pointer->int->pointer. I'll look into when we really should define _GNU_SOURCE shortly, but the fix is correct anyway. Andrew Bartlett (This used to be commit ba9bc99d3df5098864513e73b0086e42cfab2a19)
-rw-r--r--source3/configure.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in
index cf695eb05c..9d6e561327 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -494,6 +494,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;