summaryrefslogtreecommitdiff
path: root/net/ORBit/patches/patch-ad
blob: 36f52913496691ec724a113ffa33f1e0f17f7890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ad,v 1.1 1998/08/20 22:07:25 agc Exp $

Include <sys/types.h> before <machine/endian.h>

--- src/ORBitutil/machine_endian.awk	1998/08/19 10:47:19	1.1
+++ src/ORBitutil/machine_endian.awk	1998/08/19 10:47:50
@@ -8,6 +8,7 @@
 
 END {
   if (def["HAVE_MACHINE_ENDIAN_H"] || def["HAVE_ENDIAN_H"] || def["HAVE_SYS_MACHINE_H"] || def["HAVE_SYS_ENDIAN_H"]) {
+    print "#include <sys/types.h>";
     if (def["HAVE_MACHINE_ENDIAN_H"])
       print "#include <machine/endian.h>";
     if (def["HAVE_MACHINE_TYPES_H"])