$NetBSD: patch-ab,v 1.2 2000/08/26 02:22:49 wiz Exp $ --- ./include/Compat.hh.orig Tue Jul 7 23:02:01 1998 +++ ./include/Compat.hh Sat Feb 5 18:55:12 2000 @@ -14,7 +14,8 @@ #ifndef Linux -#include +#define TRUE 1 +#define FALSE 0 #include inline void bzero(void * data, int size) @@ -22,7 +23,9 @@ memset(data, 0, size); } +#ifndef __NetBSD__ const double PI=3.1415926535797; +#endif inline int byteswap(int old) { @@ -34,12 +37,15 @@ inline int byteswapshort(unsigned short old) { - return ((old & 0xff) << 8) - + ((old & 0xff00) >> 8); +/* return ((old & 0xff) << 8) + + ((old & 0xff00) >> 8);*/ + return(old); } +#ifndef __NetBSD__ extern "C" { int usleep(unsigned int); } +#endif #endif #ifdef Linux