kinichiro
a91d1013cf
update string.h for include strings.h for HPUX environment
2014-10-22 12:45:01 -05:00
inoguchi
6dccbae663
update stdio.h for including stdarg.h
...
it seems that including stdarg.h is needed for defining va_list
environment is hpux 11.31(ia64) with gcc 4.7.1.
without stdarg.h, I got compilation error like this.
"error: 'va_list' undeclared (first use in this function)"
I checked with gcc -E, then I noticed that __va_list is defined but va_list is not.
"typedef __gnuc_va_list __va_list;"
with including stdarg.h, va_list is defined.
"typedef __gnuc_va_list va_list;"
2014-08-12 21:18:27 -05:00
Brent Cook
00b51d5c25
conditionally build strnlen if needed.
...
it is only used by strndup
prodded by Sortie@
2014-08-02 21:59:36 -05:00
Brent Cook
105da446ba
define MAP_ANON for systems with MAP_ANONYMOUS
...
switch the sense of this check
2014-07-30 22:16:01 -05:00
Brent Cook
8d89fb071c
merge endian definitions between AIX/HP-UX/Solaris
2014-07-30 07:12:42 -05:00
inoguchi
ff58a2e3cb
update include/machine/endian.h for hpux portability.
...
ok bcook@
2014-07-30 07:12:36 -05:00
Brent Cook
af705b3f7d
add sys/mman.h shim to define MAP_ANON if needed
...
thanks to kinichiro for pointing this out
ok deraadt@ beck@
2014-07-29 11:17:48 -05:00
Brent Cook
35e2d8d048
add asprintf / vasprintf from OpenSSH portable
...
ok deraadt@ beck@
2014-07-29 11:17:22 -05:00
pgmassey
02ad0041c4
Update endian.h for AIX/IRIX
...
Added AIX/IRIX compatibility for endian detection.
ok bcook@ deraadt@ beck@
2014-07-29 11:17:18 -05:00
Brent Cook
981fc3618a
Guard individual compatibility header prototypes.
...
This is to avoid redefining prototypes from the libc headers. Also,
simplify the autoconf function checks and remove some copy/paste
errors checking for 'write'.
ok wouter@
2014-07-28 13:52:07 -05:00
Brent Cook
0a74a4d464
add strndup/strnlen compat functions from OpenBSD
2014-07-28 07:07:23 -05:00
Brent Cook
fb67b92eb2
include system headers for err.h compat macros
2014-07-28 07:07:23 -05:00
Brent Cook
ea6e7116c9
build openbsd memmem implementation for explicit_bzero test
...
memmem is not always available, and not all memmem's work the same way
ok beck@ guenther@
2014-07-21 20:29:49 -05:00
Brent Cook
0ec7cdcbad
include err.h shim
...
Includes compatible replacements, or uses system err.h if available.
ok beck@ guenther@
2014-07-21 19:53:53 -05:00
Brent Cook
136ddd7a9b
update guard, add win32 support for endian.h
...
Thanks to Jonas 'Sortie' Termansen for pointing the guard inconsistency out.
ok beck@
2014-07-20 16:30:50 -05:00
Brent Cook
237250e07a
include <_bsd_types.h> on MinGW
...
ok beck@
2014-07-20 16:30:38 -05:00
Brent Cook
8e6009c711
axe unneeded solaris compatibility definitions
2014-07-10 22:06:44 -05:00
Brent Cook
388a1655d4
better fix for __bounded removal
2014-07-10 16:02:49 -05:00
Charlie Root
abe7bee360
Make things build again - add some missing headers
...
ok bcook@
2014-07-10 08:36:47 -06:00
Brent Cook
2b6dbc39ef
initial top-level import of subdirectories
2014-07-10 06:22:54 -05:00