$NetBSD: patch-ai,v 1.1.1.1 2002/09/24 12:49:13 blymn Exp $ --- include/common.h.orig Sun Sep 22 22:36:51 2002 +++ include/common.h @@ -22,6 +22,22 @@ #include #endif +#ifdef __NetBSD__ +typedef unsigned long u_long; +typedef unsigned short u_short; +#include +#include +#include +#define O_NDELAY O_NONBLOCK /* compat */ + +__BEGIN_DECLS +int inet_aton(const char *, struct in_addr *); +const char *hstrerror(int); +int setenv(const char *, const char *, int); +void unsetenv(const char *); +__END_DECLS +#endif + #if defined(_WIN32) // turn off bogus `this used in base member initialization list' #pragma warning(disable: 4355) @@ -57,7 +73,7 @@ const boolean False = 0; const boolean True = !False; // some platforms don't have float versions of the math library -#if defined(_old_linux_) || defined(_MACOSX_) || defined(sun) +#if defined(_old_linux_) || defined(_MACOSX_) || defined(sun) || defined(__NetBSD__) #define asinf (float)asin #define atanf (float)atan #define atan2f (float)atan2 @@ -82,7 +98,7 @@ const boolean True = !False; #if !defined(_WIN32) & !defined(macintosh) -#ifndef BSD +#if !defined(BSD) && !defined(__NetBSD__) #include #endif #include