summaryrefslogtreecommitdiff
path: root/mbone/vat/patches/patch-af
blob: 85d766c841920ddcbe0e088a6a0f930e12c2407b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$NetBSD: patch-af,v 1.4 2006/01/03 18:56:29 joerg Exp $

--- config.h.orig	1996-05-16 12:27:06.000000000 +0000
+++ config.h
@@ -36,8 +36,13 @@
 #ifndef vic_config_h
 #define vic_config_h
 
-#if defined(sgi) || defined(__bsdi__) || defined(__FreeBSD__)
+#if defined(sgi) || defined(__bsdi__) || defined(__FreeBSD__) || defined(__NetBSD__)  || defined(__svr4__) || defined(__DragonFly__)
 #include <sys/types.h>
+#if defined(__svr4__)
+typedef uint8_t u_int8_t;
+typedef uint16_t u_int16_t;
+typedef uint32_t u_int32_t;
+#endif
 #elif defined(linux)
 #include <sys/bitypes.h>
 #else
@@ -57,7 +62,7 @@ typedef unsigned int u_int32_t;
 typedef int int32_t;
 #endif
 
-#if defined(sun)||defined(_AIX)
+#if defined(_AIX)
 #if defined(__cplusplus)
 extern "C" {
 #endif
@@ -83,7 +88,7 @@ extern "C" {
 #include <arpa/inet.h>
 int strcasecmp(const char *, const char *);
 clock_t clock(void);
-#if !defined(sco) && !defined(sgi) && !defined(__bsdi__) && !defined(__FreeBSD__)
+#if !defined(sco) && !defined(sgi) && !defined(__bsdi__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__svr4__) && !defined(__DragonFly__)
 int gethostid(void);
 #endif
 time_t time(time_t *);