about summary refs log tree commit diff
path: root/Src/system.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-03-24 12:56:56 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-03-24 12:56:56 +0000
commitd8e418bff15614315cee0cc20cd890146dd086f4 (patch)
treecbab111fcf0febf316877e22a012089dfd12ab4b /Src/system.h
parent187ce46d155281a587cd9e03cfeb9f0083610477 (diff)
downloadzsh-d8e418bff15614315cee0cc20cd890146dd086f4.tar.gz
zsh-d8e418bff15614315cee0cc20cd890146dd086f4.tar.xz
zsh-d8e418bff15614315cee0cc20cd890146dd086f4.zip
18376: Fix headers for wchar.h and some related gcc waringnings
Diffstat (limited to 'Src/system.h')
-rw-r--r--Src/system.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Src/system.h b/Src/system.h
index 42a5f1197..c9e1a5a27 100644
--- a/Src/system.h
+++ b/Src/system.h
@@ -89,6 +89,16 @@ char *alloca _((size_t));
 # include <unistd.h>
 #endif
 
+#ifdef HAVE_STDDEF_H
+/*
+ * Seen on Solaris 8 with gcc: stddef defines offsetof, which clashes
+ * with system.h's definition of the symbol unless we include this
+ * first.  Otherwise, this will be hooked in by wchar.h, too late
+ * for comfort.
+ */
+#include <stddef.h>
+#endif
+
 #include <stdio.h>
 #include <ctype.h>
 #include <sys/stat.h>