summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/m4/rewrite.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/build/m4/rewrite.m4 b/source4/build/m4/rewrite.m4
index 792b4bcba6..0c338eaaf4 100644
--- a/source4/build/m4/rewrite.m4
+++ b/source4/build/m4/rewrite.m4
@@ -28,6 +28,14 @@ case "$host_os" in
fi
;;
#
+# on AIX having _LARGE_FILES and _LARGE_FILE_API defined
+# causes compile errors because function will declared 2 times
+# with different prototypes
+#
+ *aix*)
+ CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE"
+ ;;
+#
# VOS may need to have POSIX support and System V compatibility enabled.
#
*vos*)