$NetBSD: patch-ao,v 1.2 2006/06/14 14:34:10 joerg Exp $ --- port.h.orig 1999-09-06 17:38:10.000000000 +0200 +++ port.h 2006-06-15 08:52:47.000000000 +0200 @@ -42,7 +42,7 @@ /* If endian.h is not present, it can be handled in the code below, */ /* but if you have this file, it can make it more fool proof. */ #if (defined(XFRACT) && !defined(__sun)) -#if defined(sgi) +#if defined(sgi) || defined(__NetBSD__) || defined(__DragonFly__) #include #else #include @@ -290,6 +290,9 @@ typedef int sigfunc(int); #ifdef sun #define DO_NOT_USE_LONG_DOUBLE #endif +#if defined(__NetBSD__) || defined(__DragonFly__) +#define DO_NOT_USE_LONG_DOUBLE +#endif #ifndef DO_NOT_USE_LONG_DOUBLE #ifdef LDBL_DIG @@ -353,6 +356,7 @@ typedef int sigfunc(int); #define fabsl fabs #define sinl sin #define cosl cos +#define frexpl frexp #endif #endif /* PORT_H */