patches for NetBSD
The attached patches fix several issues on NetBSD:
- The cpp conditionals for mmap goo in syscall.c don't match and break on NetBSD.
- NetBSD <7 incorrectly declared the obsolete
gethostbyaddrfunction to takechar *rather thanvoid *. - In NetBSD >=4, the ELF symbol for the
socketroutine in libc is named__socket30; the symbol namedsocketis a compatibility routine implementing older semantics in terms of the symbol__socket30.