summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-04-11 00:37:31 +0000
committerJeremy Allison <jra@samba.org>2002-04-11 00:37:31 +0000
commit8c1f1034fab5b6971243ab9a549597dcb86362ee (patch)
tree36b82daae89b6a80df2311c9e2c3d37f68a36a87 /source3/include
parent6e0b34fb3c0598e7f242e9995b421212a88888f8 (diff)
downloadsamba-8c1f1034fab5b6971243ab9a549597dcb86362ee.tar.gz
samba-8c1f1034fab5b6971243ab9a549597dcb86362ee.tar.bz2
samba-8c1f1034fab5b6971243ab9a549597dcb86362ee.zip
Ensure VFS modules will build correctly by adding defines for CPPFLAGS
defines into acconfig.h - only defined if seen. Jeremy. (This used to be commit 9f2753a1496c51fd56c97984b8def46a651dbfc8)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/config.h.in31
1 files changed, 31 insertions, 0 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in
index 0500e05b7e..5f87f5ab79 100644
--- a/source3/include/config.h.in
+++ b/source3/include/config.h.in
@@ -252,6 +252,37 @@
#undef STAT_ST_BLOCKSIZE
#undef HAVE_DEVICE_MAJOR_FN
#undef HAVE_DEVICE_MINOR_FN
+/*
+ * Add these definitions to allow VFS modules to
+ * see the CPPFLAGS defines.
+ */
+#ifndef _HPUX_SOURCE
+#undef _HPUX_SOURCE
+#endif
+#ifndef _POSIX_SOURCE
+#undef _POSIX_SOURCE
+#endif
+#ifndef _LARGEFILE64_SOURCE
+#undef _LARGEFILE64_SOURCE
+#endif
+#ifndef _ALIGNMENT_REQUIRED
+#undef _ALIGNMENT_REQUIRED
+#endif
+#ifndef _MAX_ALIGNMENT
+#undef _MAX_ALIGNMENT
+#endif
+#ifndef _LARGE_FILES
+#undef _LARGE_FILES
+#endif
+#ifndef _LARGEFILE64_SOURCE
+#undef _LARGEFILE64_SOURCE
+#endif
+#ifndef _FILE_OFFSET_BITS
+#undef _FILE_OFFSET_BITS
+#endif
+#ifndef _GNU_SOURCE
+#undef _GNU_SOURCE
+#endif
/* The number of bytes in a int. */
#undef SIZEOF_INT