- Fix that fallback for windows port.

git-svn-id: file:///svn/unbound/trunk@4700 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2018-05-29 07:52:31 +00:00
parent b3c45a8edb
commit 0db1573d34
2 changed files with 3 additions and 0 deletions

View file

@ -111,7 +111,9 @@ start:
goto nodevrandom; goto nodevrandom;
} }
#ifndef O_CLOEXEC #ifndef O_CLOEXEC
# ifdef HAVE_FCNTL
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
# endif
#endif #endif
for (i = 0; i < len; ) { for (i = 0; i < len; ) {
size_t wanted = len - i; size_t wanted = len - i;

View file

@ -1,6 +1,7 @@
29 May 2018: Wouter 29 May 2018: Wouter
- in compat/arc4random call getentropy_urandom when getentropy fails - in compat/arc4random call getentropy_urandom when getentropy fails
with ENOSYS. with ENOSYS.
- Fix that fallback for windows port.
28 May 2018: Wouter 28 May 2018: Wouter
- Fix windows tcp and tls spin on events. - Fix windows tcp and tls spin on events.