]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
getentropy: Declare it in <unistd.h> for __USE_MISC [BZ #17252]
authorFlorian Weimer <fweimer@redhat.com>
Sat, 31 Dec 2016 14:11:29 +0000 (15:11 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Sat, 31 Dec 2016 14:11:29 +0000 (15:11 +0100)
ChangeLog
posix/unistd.h

index 309b13cab8c780dbebe2d74f217cbb8d9f576d5d..9685fde488eb0ec582e749ca6090161d3900f44f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-12-31  Florian Weimer  <fweimer@redhat.com>
+
+       [BZ #17252]
+       * posix/unistd.h (getentropy): Declare for __USE_MISC, not just
+       __USE_GNU.
+
 2016-12-31  Torvald Riegel  <triegel@redhat.com>
 
        [BZ #13165]
index 70b10c6a88677e8ecd0ceacf391665b85d59fbda..a8c9aa92455cb7353a9c69a5e0db13c2d58fed4e 100644 (file)
@@ -1157,7 +1157,7 @@ extern int pthread_atfork (void (*__prepare) (void),
                           void (*__child) (void)) __THROW;
 #endif
 
-#ifdef __USE_GNU
+#ifdef __USE_MISC
 /* Write LENGTH bytes of randomness starting at BUFFER.  Return 0 on
    success or -1 on error.  */
 int getentropy (void *__buffer, size_t __length) __wur;