Brent Cook
31c98c2969
always allow upstream time.h to be visible
2018-03-23 15:35:58 -05:00
Brent Cook
6b513a1c78
add proper guard and typedef
2018-03-23 13:45:05 -05:00
Brent Cook
4b2a8cd1c1
adjust definition of compat clock_gettime
2018-03-23 11:10:16 -05:00
Brent Cook
7ffaf00415
hide clock_gettime on win32
2018-03-22 21:11:46 -05:00
Brent Cook
987aa6a084
add clock_gettime for macos 10.11 and earlier
2018-03-22 21:04:43 -05:00
Brent Cook
0e46c1e8ba
add pthread_self/pthread_equal for win32
2018-03-18 10:36:51 -05:00
Brent Cook
4799f0d9be
syntax updates
2018-03-14 12:58:48 -05:00
Brent Cook
cfdaa1185f
prefer including windows.h over the internal header
2018-03-14 12:56:26 -05:00
Brent Cook
d5608b38af
add pthread_once(3) implementation for Windows
2018-03-14 07:36:45 -05:00
Brent Cook
3fb9e63b90
bump base requirement to Windows Vista, use builtin inet_ntop/pton
2018-03-14 07:29:04 -05:00
kinichiro
3681d02253
Add compat bits for libtls on Windows
2018-02-25 21:56:05 +09:00
kinichiro
f2953bc209
Add file permission define for Windows and MinGW build
2018-02-11 23:31:43 +09:00
kinichiro
1f4bfb9a4d
Call va_end soon after using variable length variable
...
- This fix MSVC compiler warning C4702 "unreachable code".
2018-01-06 00:28:49 +09:00
kinichiro
965a89108e
Add CLOCK_MONOTONIC and timersub for the OS that does not have them
2017-12-25 16:30:49 +09:00
Brent Cook
7b6953e9a9
add timerspecsub
2017-12-12 03:31:35 -06:00
kinichiro
530fbba1ed
Add definition of in_addr_t for Windows build
2017-05-14 00:00:10 +09:00
kinichiro
048625cf2b
Add freezero support
2017-04-22 23:37:20 +09:00
kinichiro
c61c9821e8
Add support for getpagesize
2017-03-15 22:02:11 +09:00
kinichiro
8877e9bc55
Add recallocarray
2017-03-09 23:00:04 +09:00
kinichiro
fb936f89b8
Move S_IRGRP and S_IROTH from fcntl.h to sys/stat.h
...
- S_IRGRP and S_IROTH should be defined in sys/stat.h rather than fcntl.h
- Old MinGW64 on Ubuntu 14.04 appears not to have S_IRGRP and S_IROTH
- MinGW64 has __WIN32 defined but does not have _MSC_VER defined
2017-01-28 02:49:06 +09:00
kinichiro
f5026b1f3c
Add S_IRGRP and S_IROTH to include/compat/fcntl.h for ocspcheck
2017-01-26 17:51:49 +09:00
kinichiro
e57ab149c2
Add STDOUT_FILENO to include/compat/unistd.h
2017-01-26 17:51:49 +09:00
kinichiro
7dd0650d33
Add inet_ntop and memmem for ocspcheck
2017-01-26 17:51:35 +09:00
kinichiro
b249f68e6c
Fix fcntl.h shim since HP-UX 11.31 (ia64) does not define O_CLOEXEC
2017-01-19 09:58:21 +09:00
Brent Cook
3b2560feb3
MSVSC fixes
2017-01-16 10:59:24 -06:00
Brent Cook
f21bd20c7e
add open(2) shim to handle O_BINARY and O_CLOEXEC
2017-01-16 10:59:15 -06:00
Brent Cook
51a53876b6
add fcntl shim
2017-01-16 10:59:15 -06:00
Brent Cook
057e7a85b9
add noreturn attribute to compat functions
2017-01-15 16:00:17 -06:00
Brent Cook
dfb6b11e5a
include pipe2/socketpair compat for macOS
2017-01-15 16:00:16 -06:00
Brent Cook
cb63e63370
define PATH_MAX in more msvc versions
2016-10-30 23:14:03 -05:00
kinichiro
14905877a0
Enable tests on Visual Studio
...
- add patch for aeadtest.c to undef IN
- add patch for ocsp_test.c to call BIO_sock_init() before getaddrinfo()
- define STDERR_FILENO in unistd.h to build pkcs7test.c
- add option ENABLE_VSTEST(default OFF) to enable test on Visual Studio
- modify to pass test data file as an argument (aeadtest, evptest)
- add Windows scripts (ocsptest, pq_test, ssltest, testdsa, testenc, testrsa)
- do not build pidwraptest on MSVC
- fix some indentations
2016-10-30 21:40:24 -05:00
Brent Cook
b7ba692f72
ensure that __STRING works
2016-09-14 23:40:31 -05:00
Brent Cook
08837a82b6
more cdefs.h removal
2016-09-04 09:04:01 -05:00
Brent Cook
6f24864a73
cdefs.h should not be required anywhere
2016-09-04 07:57:59 -05:00
Brent Cook
6040ff04b0
wire up sys/types.h to pull in sys/cdefs.h
2016-09-04 07:38:16 -05:00
kinichiro
14aa5f73ab
modify include/compat/netinet/ip.h
...
- add including <netinet/in_systm.h> for n_long on HP-UX
2016-03-13 19:17:24 +09:00
Brent Cook
8c91563f60
add solaris include for getentropy(2)
2016-01-18 09:50:23 -06:00
Brent Cook
07e541cc2e
replace err.h macros with inline functions
...
Passing NULL for the format is just easier with a function.
2016-01-03 21:20:03 -06:00
Brent Cook
38c577d758
include strings.h in string.h on AIX as well
2016-01-03 21:19:55 -06:00
Brent Cook
905e2a3b80
refresh nc(1) support
2015-12-06 23:32:18 -06:00
Brent Cook
75ef5bb160
wrap gets on Windows, replacing '\r\n' with '\n'
2015-12-05 13:58:37 -06:00
Brent Cook
585b57b202
no special workaround needed for MSVC2015
2015-12-02 08:39:22 -06:00
Brent Cook
0197a58969
Windows compatibility fixes
...
VS2013 has trouble with relative include paths for apps/openssl, so move
certhash_win/apps_win.c back to apps/openssl.
gmtime_r on mingw64 fails with negative time_t, override
gmtime_s fails all of the time unit tests, override
SHUT_RD/WR are defined in newer mingw64 headers, check before overriding
2015-10-18 09:28:10 -05:00
Brent Cook
a45e38e962
disable some tests with 32-bit time_t systems
...
Also disable use of _mkgmtime, it does not produce correct results.
2015-10-17 22:57:59 -05:00
Brent Cook
e8c9210073
unconditionally disable pledge for now
...
suggested by deraadt@ since there is still more coming
2015-10-15 19:34:42 -05:00
Brent Cook
4298ac9305
include timegm fallback
2015-10-15 09:16:38 -05:00
Brent Cook
1dd79f5d8f
add limits.h shim for defining PATH_MAX on HP-UX
2015-10-14 23:54:25 -05:00
Brent Cook
ff52e6f4e3
check for pledge(2)
2015-10-12 15:34:03 -05:00
Brent Cook
41cebd325f
resolve tame to 0
2015-10-07 10:59:22 -05:00
Brent Cook
442cc6f1b4
add tame(2) check
2015-10-07 08:55:05 -05:00