summaryrefslogtreecommitdiff
path: root/mbone/vat/patches/patch-af
blob: 4aa98005dcf251d5e4118adec7dad959b67fad1d (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.3 2000/03/13 13:17:15 bouyer Exp $

--- config.h.orig	Thu May 16 14:27:06 1996
+++ config.h	Mon Mar 13 12:10:22 2000
@@ -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__)
 #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 int int32_t;
 #endif
 
-#if defined(sun)||defined(_AIX)
+#if defined(_AIX)
 #if defined(__cplusplus)
 extern "C" {
 #endif
@@ -83,7 +88,7 @@
 #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__)
 int gethostid(void);
 #endif
 time_t time(time_t *);