pkgsrc/mbone/vat/patches/patch-af
2006-01-03 18:56:29 +00:00

37 lines
1.2 KiB
Text

$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 *);