]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix compile of getentropy_linux for SLES11 servicepack 4.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 21 Mar 2016 08:25:03 +0000 (08:25 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 21 Mar 2016 08:25:03 +0000 (08:25 +0000)
git-svn-id: file:///svn/unbound/trunk@3683 be551aaa-1e26-0410-a405-d3ace91eadb9

compat/getentropy_linux.c
doc/Changelog

index 37d86a8f12bab9abf78687a0006f0eb6425e102c..f8c5e0f7ee59b168b283d4d376cdcc8d5311f0ed 100644 (file)
@@ -94,7 +94,7 @@ int   getentropy(void *buf, size_t len);
 extern int main(int, char *argv[]);
 #endif
 static int gotdata(char *buf, size_t len);
-#ifdef SYS_getrandom
+#if defined(SYS_getrandom) && defined(__NR_getrandom)
 static int getentropy_getrandom(void *buf, size_t len);
 #endif
 static int getentropy_urandom(void *buf, size_t len);
@@ -113,7 +113,7 @@ getentropy(void *buf, size_t len)
                return -1;
        }
 
-#ifdef SYS_getrandom
+#if defined(SYS_getrandom) && defined(__NR_getrandom)
        /*
         * Try descriptor-less getrandom()
         */
@@ -209,7 +209,7 @@ gotdata(char *buf, size_t len)
        return 0;
 }
 
-#ifdef SYS_getrandom
+#if defined(SYS_getrandom) && defined(__NR_getrandom)
 static int
 getentropy_getrandom(void *buf, size_t len)
 {
index f73c37133f7029aa5abf1ae8b5a8e4a4860c2e4d..53cb2c567351e73bcca2112b5e28f9ade447b88e 100644 (file)
@@ -1,3 +1,6 @@
+21 March 2016: Ralph
+       - Fix compile of getentropy_linux for SLES11 servicepack 4.
+
 18 March 2016: Ralph
        - Validate QNAME minimised NXDOMAIN responses.
        - If QNAME minimisation is enabled, do cache lookup for QTYPE NS in