23 lines
652 B
Text
23 lines
652 B
Text
$NetBSD: patch-ab,v 1.2 2006/03/28 17:44:08 joerg Exp $
|
|
|
|
--- osdep.h.orig 2002-08-28 22:09:58.000000000 +0000
|
|
+++ osdep.h
|
|
@@ -169,7 +169,7 @@ extern int gethostname(char *name, int n
|
|
#endif
|
|
|
|
|
|
-#elif defined(__FreeBSD__)
|
|
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
|
|
|
|
//---------------------------------------------------------------------------------------
|
|
// FreeBSD
|
|
@@ -179,7 +179,9 @@ extern int gethostname(char *name, int n
|
|
|
|
#import <stddef.h>
|
|
#import <netinet/in.h>
|
|
+#if !defined(__DragonFly__)
|
|
#import <netinet/ip_compat.h>
|
|
+#endif
|
|
#import <netinet/tcp.h>
|
|
#import <sys/socket.h>
|
|
#import <sys/ioctl.h>
|