summaryrefslogtreecommitdiff
path: root/lib/popt
diff options
context:
space:
mode:
authorIra Cooper <ira@samba.org>2012-02-03 16:47:18 -0800
committerJeremy Allison <jra@samba.org>2012-02-04 03:27:42 +0100
commit74ca6d1ddb1c5a4fbe9ddb29566878efe1761897 (patch)
treecbb0a153c03879cdecf6b5149e819129a78a0a06 /lib/popt
parent4452082002cb222cc8f1d92fbeebda79061f6e8f (diff)
downloadsamba-74ca6d1ddb1c5a4fbe9ddb29566878efe1761897.tar.gz
samba-74ca6d1ddb1c5a4fbe9ddb29566878efe1761897.tar.bz2
samba-74ca6d1ddb1c5a4fbe9ddb29566878efe1761897.zip
s3-popt: Fix configure.developer builds on Solairs.
alloca.h needs to be included, or the build complains the implicit definition of alloca. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 4 03:27:42 CET 2012 on sn-devel-104
Diffstat (limited to 'lib/popt')
-rw-r--r--lib/popt/system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/popt/system.h b/lib/popt/system.h
index 1d1b9dae88..bbb4f6cc26 100644
--- a/lib/popt/system.h
+++ b/lib/popt/system.h
@@ -58,6 +58,8 @@ char *alloca ();
# endif
#elif defined(__GNUC__) && defined(__STRICT_ANSI__)
#define alloca __builtin_alloca
+#elif defined(__GNUC__) && defined(HAVE_ALLOCA_H)
+# include <alloca.h>
#endif
/*@-redecl -redef@*/