summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/s/sunos4-0.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/s/sunos4-0.h b/src/s/sunos4-0.h
index 5c949bba673..a0cba915cc9 100644
--- a/src/s/sunos4-0.h
+++ b/src/s/sunos4-0.h
@@ -12,3 +12,10 @@
GNU malloc's memory pool. But Sun's malloc doesn't seem to mind. */
#define SYSTEM_MALLOC
+
+#ifdef __GNUC__
+/* We must define mkdir with this arg prototype
+ to match GCC's fixed stat.h. */
+#define MKDIR_PROTOTYPE \
+ int mkdir (const char *dpath, unsigned short dmode)
+#endif /* __GNUC__ */