*** ./gnokii-0.6.3/utils/mgnokiidev.c.orig Wed Jul 21 17:53:08 2004 --- ./gnokii-0.6.3/utils/mgnokiidev.c Wed Jul 21 17:54:56 2004 *************** *** 46,51 **** --- 46,56 ---- #endif /* See common/data/virtmodem.c for explanation */ + #ifdef __NetBSD__ + # include + #endif + + /* See common/data/virtmodem.c for explanation */ #define _XOPEN_SOURCE 500 #include "misc.h" *** ./gnokii-0.6.3/common/data/virtmodem.c.orig Wed Jul 21 17:53:08 2004 --- ./gnokii-0.6.3/common/data/virtmodem.c Wed Jul 21 17:56:10 2004 *************** *** 52,57 **** --- 52,62 ---- # define __BSD_VISIBLE 1 #endif + /* same for NetBSD */ + #ifdef __NetBSD__ + # include + #endif + /* This is the correct way to include stdlib with _XOPEN_SOURCE = 500 defined. * Needed for clean unlockpt() declaration. * msghdr structure in Solaris depends on _XOPEN_SOURCE = 500 too. - bozo *** ./gnokii-0.6.3/include/compat.h.orig Wed Jul 21 17:53:08 2004 --- ./gnokii-0.6.3/include/compat.h Wed Jul 21 17:56:38 2004 *************** *** 214,220 **** #endif /* Get rid of long defines. Use #if __unices__ */ ! #define __unices__ defined(__svr4__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__MACH__) || defined(__OpenBSD__) /* This one is for NLS. */ #ifdef ENABLE_NLS --- 214,220 ---- #endif /* Get rid of long defines. Use #if __unices__ */ ! #define __unices__ defined(__svr4__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__MACH__) || defined(__OpenBSD__) || defined(__NetBSD__) /* This one is for NLS. */ #ifdef ENABLE_NLS