$NetBSD: patch-aw,v 1.2 2009/05/09 18:43:41 hira Exp $ --- sal/osl/unx/system.h.orig 2008-10-01 18:19:55.000000000 +0900 +++ sal/osl/unx/system.h 2009-05-09 23:08:19.000000000 +0900 @@ -129,7 +129,10 @@ #endif #ifdef NETBSD +# include +# ifndef ETIME # define ETIME ETIMEDOUT +# endif # define _POSIX_THREAD_SYSCALL_SOFT 1 # include # include @@ -505,7 +508,6 @@ #ifdef NO_PTHREAD_RTL #if !defined FREEBSD || (__FreeBSD_version < 500112) -struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); extern struct spwd *getspnam_r(const char *name, struct spwd *result, char *buffer, int buflen);