Jim Hague
42e4cfc383
Windowqs mkstemp: open() needs more permissions.
...
Specifically:
1. The open must be for read only or read/write - use read/write.
2. The file permission must permit read and write.
2020-12-12 21:16:46 +00:00
Jim Hague
dd70108558
Windows does not have mkstemp(). Add compat version.
...
The compat version is Windows-specific.
2019-10-15 16:54:13 +01:00
Jim Hague
323d76d7ae
Add the rest of the compat functions to the build, if required.
...
Remove any preprocess guards from the sources, and only include them in the build if required. Add some additional required Windows libraries.
2019-10-15 16:53:03 +01:00
Jim Hague
5db0d03b13
Enable building on Windows with Visual Studio.
...
The change mostly consists of removing or replacing non-standard (usually POSIX) header includes.
Guards for replacements for inet_ntop(), inet_pton() and gettimeofday() are updated; the first two are macros on Windows, so the guards are changed to HAVE_DECL. gettimeofday() is present on MinGW builds but not Visual Studio, so that has a function check.
2019-10-15 10:09:17 +01:00
Willem Toorop
ac379787a2
Reassure clang static analyzer that all is OK
2019-01-23 10:29:20 +01:00
Willem Toorop
1e7da76901
Bugfix getdnsapi/stubby#140 fallback on getentropy failure
2018-11-30 14:50:06 +01:00
Willem Toorop
799bd2f6b1
Bugfix #399 : Reinclude <linux/sysctl.h> in getentropy_linux.c
2018-05-15 08:11:55 +02:00
Willem Toorop
3c355d425b
Warnings are errors :(
2018-05-03 12:15:48 +02:00
Willem Toorop
101d602739
Travis output showed it was a bracket issue
2018-05-03 11:48:07 +02:00
Willem Toorop
de7f007bf3
Without dl_iterate_phdr for now...
2018-05-03 11:40:44 +02:00
Willem Toorop
f5c588c955
Need _GNU_SOURCE before config.h
2018-05-03 11:30:28 +02:00
Willem Toorop
f0f101511b
_GNU_SOURCE needed for struct dl_phdr_info from link.h
2018-05-03 11:21:11 +02:00
Willem Toorop
4f050facc3
Bugfix #394 : Update src/compat/getentropy_linux.c
...
in order to handle ENOSYS (not implemented) fallback.
Thanks Brent Blood
2018-05-02 14:32:12 +02:00
Willem Toorop
44065bead8
Initial windows work
2017-07-06 00:26:21 +02:00
Willem Toorop
5b5123a79d
HAVE_PTHREAD instead of HAVE_PTHREADS like unbound
2017-03-09 11:46:15 +01:00
Christian Huitema
53d73d2f90
Implementing the ARC4_LOCK/UNLOCK functions for Windows.
2017-01-13 12:24:46 +01:00
Christian Huitema
b91e13b13b
Fixing VS studio analysis issues in Get DNS code.
2016-12-10 16:03:17 -08:00
Christian Huitema
26eaf255c5
Fixing the bulk of the compilation warnings in the GetDNS code
2016-12-08 12:37:35 -08:00
Christian Huitema
dee33f53b6
Reminder of changes required by the Windows port. This solves the issues 228, 229, 230 and 232.
2016-12-05 11:38:59 -08:00
Neil Cook
393b24fe89
pthread-based locking for arc4random
2016-10-26 14:32:35 +00:00
Willem Toorop
cf387ca3f2
Fixes for cross compiling
2016-01-07 15:32:23 +01:00
Willem Toorop
d3d2dbc1d3
inet_ntop and inet_pton from compat
2015-12-17 15:36:43 +01:00
unknown
2d58ed465c
Changes for Windows, Fix configure.ac to take in a winsock option to configure and generafigure, add ifdef's to stub out windows code for other platforms.
2015-11-22 22:38:13 -05:00
Willem Toorop
4683208fd1
First go at using arc4random 4 random numbers
2015-03-21 04:41:25 -05:00
Willem Toorop
ee304d7181
Compatibility functions & make depend
2014-09-23 10:12:34 +02:00