summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--posix/unistd.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 309b13cab8..9685fde488 100644
--- 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]
diff --git a/posix/unistd.h b/posix/unistd.h
index 70b10c6a88..a8c9aa9245 100644
--- a/posix/unistd.h
+++ b/posix/unistd.h
@@ -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;