Yes.
Ok. Does the attached patch help?
>Here again you should grok autoconf into checking if the present
method of doing
>things is availible or not instead of just checking NetBSD. Do any
of the other
>BSDs support the current code?
This is temporey hack until i will get to the point of emulating the
network, then i will implement it. This is a major change in the code
we will not escape from using some kind of #if ... #endif it can be
#if defined (__NetBSD__) || defined (__OpenBSD__) || defined (__FreeBSD__)
or add autoconf check for HAVE_NET_BPF_H. As far as I know all BSD
have bpf. bpf is used by dhcp.
Adding an autoconf check for bpf would be the right way.
nog.
-------------- next part --------------
Index: configure.in
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/configure.in,v
retrieving revision 1.44
diff -u -r1.44 configure.in
--- configure.in 18 Feb 2005 21:04:29 -0000 1.44
+++ configure.in 13 Mar 2005 07:20:52 -0000
@@ -58,15 +58,33 @@
AC_CHECK_HEADERS(unistd.h stdlib.h varargs.h stdarg.h string.h \
sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
termcap.h termios.h termio.h sys/file.h locale.h\
- net/ethernet.h sys/ethernet.h malloc.h inttypes.h)
+ net/ethernet.h sys/ethernet.h malloc.h inttypes.h sys/types.h)
AC_C_BIGENDIAN
dnl check for "long long" (added by Erez)
AC_TRY_COMPILE(,[long long ll; unsigned long long ull;],AC_DEFINE(CC_HAS_LONG_LONG))
-dnl check for {u,}int{8,16,32}_t in inttypes.h
-AC_CHECK_TYPES([uint8_t, uint16_t, uint32_t],,, [#include ])
-AC_CHECK_TYPES([int8_t, int16_t, int32_t],,, [#include ])
+case "$ac_cv_header_inttypes_h" in
+yes)
+ case "$ac_cv_header_sys_types_h" in
+ yes)
+ dnl check for {u,}int{8,16,32}_t in inttypes.h and sys/types.h
+ AC_CHECK_TYPES([uint8_t, uint16_t, uint32_t],,, [#include ])
+ AC_CHECK_TYPES([int8_t, int16_t, int32_t],,, [#include ])
+ ;;
+ no)
+ dnl check for {u,}int{8,16,32}_t in inttypes.h
+ AC_CHECK_TYPES([uint8_t, uint16_t, uint32_t],,, [#include ])
+ AC_CHECK_TYPES([int8_t, int16_t, int32_t],,, [#include ])
+ ;;
+ esac
+ ;;
+no)
+ dnl check for {u,}int{8,16,32}_t in sys/types.h
+ AC_CHECK_TYPES([uint8_t, uint16_t, uint32_t],,, [#include ])
+ AC_CHECK_TYPES([int8_t, int16_t, int32_t],,, [#include ])
+ ;;
+esac
AC_CHECK_SIZEOF(char, 1)
AC_CHECK_SIZEOF(short, 1)
Index: mprofiler.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/mprofiler.c,v
retrieving revision 1.9
diff -u -r1.9 mprofiler.c
--- mprofiler.c 9 Feb 2005 17:40:53 -0000 1.9
+++ mprofiler.c 13 Mar 2005 07:20:53 -0000
@@ -30,6 +30,11 @@
#if HAVE_MALLOC_H
#include /* calloc, free */
#endif
+
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: profiler.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/profiler.c,v
retrieving revision 1.12
diff -u -r1.12 profiler.c
--- profiler.c 18 Feb 2005 20:47:25 -0000 1.12
+++ profiler.c 13 Mar 2005 07:20:53 -0000
@@ -25,6 +25,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: sim-cmd.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/sim-cmd.c,v
retrieving revision 1.10
diff -u -r1.10 sim-cmd.c
--- sim-cmd.c 18 Feb 2005 21:04:29 -0000 1.10
+++ sim-cmd.c 13 Mar 2005 07:20:55 -0000
@@ -31,6 +31,10 @@
#include
#endif /* HAVE_LIBREADLINE */
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: sim-config.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/sim-config.c,v
retrieving revision 1.118
diff -u -r1.118 sim-config.c
--- sim-config.c 18 Feb 2005 21:04:29 -0000 1.118
+++ sim-config.c 13 Mar 2005 07:20:57 -0000
@@ -26,6 +26,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: toplevel.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/toplevel.c,v
retrieving revision 1.116
diff -u -r1.116 toplevel.c
--- toplevel.c 18 Feb 2005 21:04:29 -0000 1.116
+++ toplevel.c 13 Mar 2005 07:20:58 -0000
@@ -34,6 +34,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: bpb/branch_predict.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/bpb/branch_predict.c,v
retrieving revision 1.13
diff -u -r1.13 branch_predict.c
--- bpb/branch_predict.c 18 Feb 2005 20:48:13 -0000 1.13
+++ bpb/branch_predict.c 13 Mar 2005 07:20:59 -0000
@@ -32,6 +32,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cache/dcache_model.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cache/dcache_model.c,v
retrieving revision 1.18
diff -u -r1.18 dcache_model.c
--- cache/dcache_model.c 18 Feb 2005 20:48:26 -0000 1.18
+++ cache/dcache_model.c 13 Mar 2005 07:21:01 -0000
@@ -30,6 +30,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cache/icache_model.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cache/icache_model.c,v
retrieving revision 1.20
diff -u -r1.20 icache_model.c
--- cache/icache_model.c 18 Feb 2005 20:48:26 -0000 1.20
+++ cache/icache_model.c 13 Mar 2005 07:21:02 -0000
@@ -30,6 +30,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cpu/common/abstract.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cpu/common/abstract.c,v
retrieving revision 1.90
diff -u -r1.90 abstract.c
--- cpu/common/abstract.c 18 Feb 2005 21:04:30 -0000 1.90
+++ cpu/common/abstract.c 13 Mar 2005 07:21:06 -0000
@@ -28,6 +28,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cpu/common/labels.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cpu/common/labels.c,v
retrieving revision 1.6
diff -u -r1.6 labels.c
--- cpu/common/labels.c 18 Feb 2005 20:48:29 -0000 1.6
+++ cpu/common/labels.c 13 Mar 2005 07:21:07 -0000
@@ -28,6 +28,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cpu/common/parse.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cpu/common/parse.c,v
retrieving revision 1.41
diff -u -r1.41 parse.c
--- cpu/common/parse.c 9 Feb 2005 18:19:03 -0000 1.41
+++ cpu/common/parse.c 13 Mar 2005 07:21:08 -0000
@@ -24,6 +24,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cpu/common/stats.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cpu/common/stats.c,v
retrieving revision 1.38
diff -u -r1.38 stats.c
--- cpu/common/stats.c 9 Feb 2005 17:41:01 -0000 1.38
+++ cpu/common/stats.c 13 Mar 2005 07:21:08 -0000
@@ -23,6 +23,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cpu/common/trace.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cpu/common/trace.c,v
retrieving revision 1.8
diff -u -r1.8 trace.c
--- cpu/common/trace.c 9 Feb 2005 17:41:01 -0000 1.8
+++ cpu/common/trace.c 13 Mar 2005 07:21:08 -0000
@@ -21,6 +21,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cpu/or1k/except.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cpu/or1k/except.c,v
retrieving revision 1.33
diff -u -r1.33 except.c
--- cpu/or1k/except.c 9 Feb 2005 17:41:02 -0000 1.33
+++ cpu/or1k/except.c 13 Mar 2005 07:21:10 -0000
@@ -23,6 +23,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cpu/or1k/sprs.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cpu/or1k/sprs.c,v
retrieving revision 1.45
diff -u -r1.45 sprs.c
--- cpu/or1k/sprs.c 10 Feb 2005 14:53:11 -0000 1.45
+++ cpu/or1k/sprs.c 13 Mar 2005 07:21:10 -0000
@@ -24,6 +24,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cpu/or32/execute.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cpu/or32/execute.c,v
retrieving revision 1.103
diff -u -r1.103 execute.c
--- cpu/or32/execute.c 9 Feb 2005 18:04:32 -0000 1.103
+++ cpu/or32/execute.c 13 Mar 2005 07:21:13 -0000
@@ -30,6 +30,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cpu/or32/or32.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cpu/or32/or32.c,v
retrieving revision 1.41
diff -u -r1.41 or32.c
--- cpu/or32/or32.c 9 Feb 2005 17:41:03 -0000 1.41
+++ cpu/or32/or32.c 13 Mar 2005 07:21:16 -0000
@@ -66,6 +66,9 @@
# include "config.h"
#endif
#ifdef HAS_EXECUTION
+# ifdef HAVE_SYS_TYPES_H
+# include
+# endif
# ifdef HAVE_INTTYPES_H
# include /* ...but to get arch.h we need uint{8,16,32}_t... */
# endif
Index: cuc/adv.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cuc/adv.c,v
retrieving revision 1.5
diff -u -r1.5 adv.c
--- cuc/adv.c 9 Feb 2005 17:41:04 -0000 1.5
+++ cuc/adv.c 13 Mar 2005 07:21:18 -0000
@@ -24,6 +24,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cuc/bb.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cuc/bb.c,v
retrieving revision 1.32
diff -u -r1.32 bb.c
--- cuc/bb.c 9 Feb 2005 17:41:04 -0000 1.32
+++ cuc/bb.c 13 Mar 2005 07:21:23 -0000
@@ -25,6 +25,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cuc/cuc.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cuc/cuc.c,v
retrieving revision 1.36
diff -u -r1.36 cuc.c
--- cuc/cuc.c 18 Feb 2005 20:48:33 -0000 1.36
+++ cuc/cuc.c 13 Mar 2005 07:21:25 -0000
@@ -29,6 +29,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cuc/insn.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cuc/insn.c,v
retrieving revision 1.31
diff -u -r1.31 insn.c
--- cuc/insn.c 9 Feb 2005 17:41:04 -0000 1.31
+++ cuc/insn.c 13 Mar 2005 07:21:28 -0000
@@ -24,6 +24,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cuc/load.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cuc/load.c,v
retrieving revision 1.13
diff -u -r1.13 load.c
--- cuc/load.c 9 Feb 2005 17:41:06 -0000 1.13
+++ cuc/load.c 13 Mar 2005 07:21:31 -0000
@@ -25,6 +25,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cuc/memory.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cuc/memory.c,v
retrieving revision 1.12
diff -u -r1.12 memory.c
--- cuc/memory.c 9 Feb 2005 17:41:07 -0000 1.12
+++ cuc/memory.c 13 Mar 2005 07:21:31 -0000
@@ -24,6 +24,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cuc/timings.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cuc/timings.c,v
retrieving revision 1.9
diff -u -r1.9 timings.c
--- cuc/timings.c 9 Feb 2005 17:41:07 -0000 1.9
+++ cuc/timings.c 13 Mar 2005 07:21:32 -0000
@@ -26,6 +26,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: cuc/verilog.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/cuc/verilog.c,v
retrieving revision 1.30
diff -u -r1.30 verilog.c
--- cuc/verilog.c 9 Feb 2005 17:41:07 -0000 1.30
+++ cuc/verilog.c 13 Mar 2005 07:21:35 -0000
@@ -24,6 +24,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: debug/debug_unit.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/debug/debug_unit.c,v
retrieving revision 1.20
diff -u -r1.20 debug_unit.c
--- debug/debug_unit.c 18 Feb 2005 20:51:51 -0000 1.20
+++ debug/debug_unit.c 13 Mar 2005 07:21:37 -0000
@@ -35,6 +35,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: debug/gdbcomm.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/debug/gdbcomm.c,v
retrieving revision 1.7
diff -u -r1.7 gdbcomm.c
--- debug/gdbcomm.c 18 Feb 2005 20:48:36 -0000 1.7
+++ debug/gdbcomm.c 13 Mar 2005 07:21:39 -0000
@@ -35,6 +35,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: mmu/dmmu.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/mmu/dmmu.c,v
retrieving revision 1.24
diff -u -r1.24 dmmu.c
--- mmu/dmmu.c 18 Feb 2005 20:48:38 -0000 1.24
+++ mmu/dmmu.c 13 Mar 2005 07:21:40 -0000
@@ -21,6 +21,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: mmu/immu.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/mmu/immu.c,v
retrieving revision 1.23
diff -u -r1.23 immu.c
--- mmu/immu.c 18 Feb 2005 20:48:39 -0000 1.23
+++ mmu/immu.c 13 Mar 2005 07:21:40 -0000
@@ -21,6 +21,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: peripheral/16450.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/peripheral/16450.c,v
retrieving revision 1.45
diff -u -r1.45 16450.c
--- peripheral/16450.c 18 Feb 2005 20:58:46 -0000 1.45
+++ peripheral/16450.c 13 Mar 2005 07:21:42 -0000
@@ -33,6 +33,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: peripheral/atadevice.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/peripheral/atadevice.c,v
retrieving revision 1.8
diff -u -r1.8 atadevice.c
--- peripheral/atadevice.c 18 Feb 2005 20:57:02 -0000 1.8
+++ peripheral/atadevice.c 13 Mar 2005 07:21:45 -0000
@@ -25,6 +25,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: peripheral/atahost.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/peripheral/atahost.c,v
retrieving revision 1.10
diff -u -r1.10 atahost.c
--- peripheral/atahost.c 18 Feb 2005 20:55:36 -0000 1.10
+++ peripheral/atahost.c 13 Mar 2005 07:21:47 -0000
@@ -23,6 +23,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: peripheral/dma.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/peripheral/dma.c,v
retrieving revision 1.18
diff -u -r1.18 dma.c
--- peripheral/dma.c 18 Feb 2005 21:00:45 -0000 1.18
+++ peripheral/dma.c 13 Mar 2005 07:21:47 -0000
@@ -28,6 +28,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: peripheral/eth.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/peripheral/eth.c,v
retrieving revision 1.26
diff -u -r1.26 eth.c
--- peripheral/eth.c 18 Feb 2005 21:01:46 -0000 1.26
+++ peripheral/eth.c 13 Mar 2005 07:21:49 -0000
@@ -33,6 +33,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: peripheral/fb.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/peripheral/fb.c,v
retrieving revision 1.19
diff -u -r1.19 fb.c
--- peripheral/fb.c 18 Feb 2005 20:59:49 -0000 1.19
+++ peripheral/fb.c 13 Mar 2005 07:21:50 -0000
@@ -22,6 +22,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: peripheral/gpio.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/peripheral/gpio.c,v
retrieving revision 1.15
diff -u -r1.15 gpio.c
--- peripheral/gpio.c 18 Feb 2005 21:03:45 -0000 1.15
+++ peripheral/gpio.c 13 Mar 2005 07:21:51 -0000
@@ -21,6 +21,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: peripheral/mc.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/peripheral/mc.c,v
retrieving revision 1.15
diff -u -r1.15 mc.c
--- peripheral/mc.c 18 Feb 2005 21:02:14 -0000 1.15
+++ peripheral/mc.c 13 Mar 2005 07:21:51 -0000
@@ -32,6 +32,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: peripheral/ps2kbd.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/peripheral/ps2kbd.c,v
retrieving revision 1.14
diff -u -r1.14 ps2kbd.c
--- peripheral/ps2kbd.c 18 Feb 2005 21:01:10 -0000 1.14
+++ peripheral/ps2kbd.c 13 Mar 2005 07:21:52 -0000
@@ -23,6 +23,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: peripheral/test.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/peripheral/test.c,v
retrieving revision 1.5
diff -u -r1.5 test.c
--- peripheral/test.c 18 Feb 2005 20:53:34 -0000 1.5
+++ peripheral/test.c 13 Mar 2005 07:21:52 -0000
@@ -2,6 +2,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: peripheral/vga.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/peripheral/vga.c,v
retrieving revision 1.10
diff -u -r1.10 vga.c
--- peripheral/vga.c 18 Feb 2005 20:59:20 -0000 1.10
+++ peripheral/vga.c 13 Mar 2005 07:21:53 -0000
@@ -22,6 +22,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: pic/pic.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/pic/pic.c,v
retrieving revision 1.18
diff -u -r1.18 pic.c
--- pic/pic.c 9 Feb 2005 17:41:17 -0000 1.18
+++ pic/pic.c 13 Mar 2005 07:21:55 -0000
@@ -27,6 +27,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: pm/pm.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/pm/pm.c,v
retrieving revision 1.6
diff -u -r1.6 pm.c
--- pm/pm.c 18 Feb 2005 20:48:49 -0000 1.6
+++ pm/pm.c 13 Mar 2005 07:21:56 -0000
@@ -27,6 +27,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: support/dumpverilog.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/support/dumpverilog.c,v
retrieving revision 1.16
diff -u -r1.16 dumpverilog.c
--- support/dumpverilog.c 18 Feb 2005 20:48:51 -0000 1.16
+++ support/dumpverilog.c 13 Mar 2005 07:21:57 -0000
@@ -26,6 +26,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: support/profile.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/support/profile.c,v
retrieving revision 1.2
diff -u -r1.2 profile.c
--- support/profile.c 9 Feb 2005 17:41:20 -0000 1.2
+++ support/profile.c 13 Mar 2005 07:21:57 -0000
@@ -21,6 +21,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: support/sched.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/support/sched.c,v
retrieving revision 1.4
diff -u -r1.4 sched.c
--- support/sched.c 18 Feb 2005 20:57:03 -0000 1.4
+++ support/sched.c 13 Mar 2005 07:21:58 -0000
@@ -29,6 +29,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: support/simprintf.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/support/simprintf.c,v
retrieving revision 1.17
diff -u -r1.17 simprintf.c
--- support/simprintf.c 9 Feb 2005 17:41:20 -0000 1.17
+++ support/simprintf.c 13 Mar 2005 07:21:58 -0000
@@ -30,6 +30,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: tick/tick.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/tick/tick.c,v
retrieving revision 1.18
diff -u -r1.18 tick.c
--- tick/tick.c 18 Feb 2005 20:57:04 -0000 1.18
+++ tick/tick.c 13 Mar 2005 07:21:59 -0000
@@ -27,6 +27,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
Index: vapi/vapi.c
===================================================================
RCS file: /cvsroot/anonymous/or1k/or1ksim/vapi/vapi.c,v
retrieving revision 1.21
diff -u -r1.21 vapi.c
--- vapi/vapi.c 18 Feb 2005 20:57:51 -0000 1.21
+++ vapi/vapi.c 13 Mar 2005 07:22:01 -0000
@@ -41,6 +41,10 @@
#include "config.h"
+#ifdef HAVE_SYS_TYPES_H
+#include
+#endif
+
#ifdef HAVE_INTTYPES_H
#include
#endif
|