$NetBSD: patch-bg,v 1.2 2006/10/19 11:51:27 markd Exp $ --- source/common/basis_types.h.orig 2005-07-18 22:25:31.000000000 +1200 +++ source/common/basis_types.h @@ -110,7 +110,7 @@ extern "C" { # define u_long32 u_int #elif defined(WIN32NATIVE) # define u_long32 unsigned long -#elif defined(FREEBSD) +#elif defined(FREEBSD) || defined(NETBSD) # define u_long32 uint32_t #else # define u_long32 u_long @@ -120,7 +120,7 @@ extern "C" { /* set sge_u32 and sge_x32 for 64 or 32 bit machines */ /* sge_uu32 for strictly unsigned, not nice, but did I use %d for an unsigned? */ -#if defined(TARGET_64BIT) || defined(FREEBSD) +#if defined(TARGET_64BIT) || defined(FREEBSD) || defined(NETBSD) # define sge_u32 "%d" # define sge_uu32 "%u" # define sge_x32 "%x" @@ -136,7 +136,7 @@ extern "C" { solaris (who else - it's IRIX?) uses long variables for uid_t, gid_t and pid_t */ -#if defined(FREEBSD) +#if defined(FREEBSD) || defined(NETBSD) # define uid_t_fmt "%u" #else # define uid_t_fmt pid_t_fmt @@ -150,7 +150,7 @@ extern "C" { #if (defined(SOLARIS) && defined(TARGET_32BIT)) || defined(IRIX) || defined(INTERIX) # define gid_t_fmt "%ld" -#elif defined(LINUX86) || defined(FREEBSD) +#elif defined(LINUX86) || defined(FREEBSD) || defined(NETBSD) # define gid_t_fmt "%u" #else # define gid_t_fmt "%d"