##README for NetBSD
-
NetBSD 6 & 7 seems not have _SC_XOPEN_VERSION, defined it manually
#define _SC_XOPEN_VERSION 9
-
getenv_r is in stdlib.h,so comment it out
-
as far as cmsgcred(freebsd) is concernd, netbsd has sockcred.
-
AI_V4MAPPED and AI_ALL are not available on netbsd,comment it out.
-
netbsd doesn't support pthread_mutex_timedlock in pthread lib, we do not build timedlock.c
-
define 2 macros(NETBSD and _NETBSD_SOURCE) in makefile to distinguish from other OSes and support u_char
-
add a new Makefile.defines.netbsd file
We need gmake on netbsd.
$ pkgin install gmake
$ gmakeRead the file called DISCLAIMER.
On Freebsd and NetBSD, type "gmake". On other platforms, type "make" (as long as this is gnu make).
For FAQs, updated source code, and the lost chapter, see http://www.apuebook.com. Please direct questions, suggestions, and bug reports to [email protected].
Steve Rago January 2013