pkgsrc/mbone/vic/patches/patch-af
joerg 050476bae9 Add DragonFly support. Fix compilation with GCC 3.4+:
When method_ is not set, assume it means the default dither algorithm,
set it to NULL in disable(). This can also avoid possible segfaults.
Bump revision.
2006-02-27 15:49:56 +00:00

22 lines
866 B
Text

$NetBSD: patch-af,v 1.3 2006/02/27 15:49:56 joerg Exp $
--- /usr/local/pkgsrc//mbone/vic/work/vic-2.8/config.h Thu May 16 14:27:06 1996
+++ config.h Wed Nov 19 15:46:41 1997
@@ -36,7 +36,7 @@
#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(__DragonFly__)
#include <sys/types.h>
#elif defined(linux)
#include <sys/bitypes.h>
@@ -83,7 +83,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(__DragonFly__)
int gethostid(void);
#endif
time_t time(time_t *);