2016-10-14 07:49:11 +02:00

17 lines
406 B
Plaintext

$NetBSD: patch-ae,v 1.2 2015/12/29 23:34:55 dholland Exp $
Avoid redeclaring library functions on BSD.
--- ss.c 2002/08/12 16:16:32 1.1
+++ ss.c 2002/08/12 16:17:10
@@ -12,7 +12,8 @@
#ifdef unix
#include <unistd.h>
#endif
-#ifdef SUN5
+#include <sys/param.h>
+#if defined(SUN5) && !(defined(BSD) && BSD >= 199306)
/* missing from unistd.h */
long gethostid(void);
int gethostname(char *, int);