aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tiemann <tiemann@cygnus>1992-02-11 10:34:03 +0000
committerMichael Tiemann <tiemann@cygnus>1992-02-11 10:34:03 +0000
commitd68f75c44d26738885919fbf1754833dbc3600a4 (patch)
treeeb9a81b3cb8698518fbb3afa7021e4166111723a
parent20ec2f6c98f119fa6c1c51fa207d052f381ad5f6 (diff)
downloadgdb-d68f75c44d26738885919fbf1754833dbc3600a4.zip
gdb-d68f75c44d26738885919fbf1754833dbc3600a4.tar.gz
gdb-d68f75c44d26738885919fbf1754833dbc3600a4.tar.bz2
#include <sys/stdtypes.h> before <stddef.h> so that when we compile
with GCC, the compiler does not stumble over `size_t', `ptrdiff_t', and `wchar_t'. Also note that the comment in <stddef.h> says that we have to #include <sys/stdtypes.h> before including <stddef.h> when on a sun.
-rw-r--r--gas/config/ho-sunos.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/ho-sunos.h b/gas/config/ho-sunos.h
index 1802632..ef4b3cb 100644
--- a/gas/config/ho-sunos.h
+++ b/gas/config/ho-sunos.h
@@ -9,6 +9,9 @@
#else
extern int memset();
#endif
+
+/* #include <sys/stdtypes.h> before <stddef.h> when compiling by GCC. */
+#include <sys/stdtypes.h>
#include <stddef.h>
#include <ctype.h>
#include <string.h>