$NetBSD: patch-aa,v 1.4 2022/04/25 16:17:48 tnn Exp $ --- socket++/local.h.orig 2003-03-14 18:02:40.000000000 +0000 +++ socket++/local.h @@ -90,8 +90,10 @@ extern "C" unsigned long inet_addr (cons extern "C" char* inet_ntoa (in_addr ina); #if !defined (__linux__) +#if !defined (__NetBSD__) && !defined (__DragonFly__) && !defined(__sun) extern "C" int gethostname (char* hostname, int len); -#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)) +#endif +#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__) || defined(__DragonFly__)) extern char* SYS_SIGLIST []; #endif #endif