Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/binutils/ld XXX include <stdint.h> on NetBSD 1.6 an...



details:   https://anonhg.NetBSD.org/src/rev/e05db2ae03e3
branches:  trunk
changeset: 555963:e05db2ae03e3
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Dec 05 03:25:36 2003 +0000

description:
XXX include <stdint.h> on NetBSD 1.6 and greater.
XXX this file is generated, but this change is needed for GCC2 hosts to
XXX to able to build this file without warnings.

diffstat:

 gnu/dist/binutils/ld/ldlex.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 4e3317e77470 -r e05db2ae03e3 gnu/dist/binutils/ld/ldlex.c
--- a/gnu/dist/binutils/ld/ldlex.c      Fri Dec 05 02:57:02 2003 +0000
+++ b/gnu/dist/binutils/ld/ldlex.c      Fri Dec 05 03:25:36 2003 +0000
@@ -28,9 +28,15 @@
 #ifndef FLEXINT_H
 #define FLEXINT_H
 
+/* XXX NetBSD 1.6 has <stdint.h>.  */
+#ifdef __NetBSD__
+#include <sys/param.h>
+#endif
+
 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
 
-#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
+#if (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) \
+    || __NetBSD_Version__ > 106000000
 #include <inttypes.h>
 typedef int8_t flex_int8_t;
 typedef uint8_t flex_uint8_t;



Home | Main Index | Thread Index | Old Index