summaryrefslogtreecommitdiffstats
path: root/source/acconfig.h
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
commit9f2753a1496c51fd56c97984b8def46a651dbfc8 (patch)
treecab3e6fe7c2a4c7ccfc6faaf9b214e999678d212 /source/acconfig.h
parentb69f11170c2b27016c44a98bc603d1c94ad7d4c2 (diff)
downloadsamba-9f2753a1496c51fd56c97984b8def46a651dbfc8.tar.gz
samba-9f2753a1496c51fd56c97984b8def46a651dbfc8.tar.xz
samba-9f2753a1496c51fd56c97984b8def46a651dbfc8.zip
Ensure VFS modules will build correctly by adding defines for CPPFLAGS
defines into acconfig.h - only defined if seen. Jeremy.
Diffstat (limited to 'source/acconfig.h')
-rw-r--r--source/acconfig.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/source/acconfig.h b/source/acconfig.h
index 8ebb45f3c70..339fb9e3454 100644
--- a/source/acconfig.h
+++ b/source/acconfig.h
@@ -186,3 +186,34 @@
#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