]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix that fallback for windows port.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 29 May 2018 07:52:31 +0000 (07:52 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 29 May 2018 07:52:31 +0000 (07:52 +0000)
git-svn-id: file:///svn/unbound/trunk@4700 be551aaa-1e26-0410-a405-d3ace91eadb9

compat/arc4random.c
doc/Changelog

index 28e8041d8e0c2f203b9dd207724a5b398b8e7ccf..bcef0ec90f8aa47696f492f9fcbd3d05015ea71c 100644 (file)
@@ -111,7 +111,9 @@ start:
                goto nodevrandom;
        }
 #ifndef O_CLOEXEC
+#  ifdef HAVE_FCNTL
        fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
+#  endif
 #endif
        for (i = 0; i < len; ) {
                size_t wanted = len - i;
index 189e4f9fd2a15f5af696267a56cff3b3bc448a2c..ff05afd9232c492ce23888e9e54fef4e5c40af51 100644 (file)
@@ -1,6 +1,7 @@
 29 May 2018: Wouter
        - in compat/arc4random call getentropy_urandom when getentropy fails
          with ENOSYS.
+       - Fix that fallback for windows port.
 
 28 May 2018: Wouter
        - Fix windows tcp and tls spin on events.