aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-12-31 15:11:29 +0100
committerFlorian Weimer <fweimer@redhat.com>2016-12-31 15:11:29 +0100
commita851999f61ad7ceabc2a945a3c31c60e8c914a4b (patch)
tree87b395ad3924b66a69f215fd04d31e9ef5ccffd9 /posix
parented19993b5b0d05d62cc883571519a67dae481a14 (diff)
downloadglibc-a851999f61ad7ceabc2a945a3c31c60e8c914a4b.zip
glibc-a851999f61ad7ceabc2a945a3c31c60e8c914a4b.tar.gz
glibc-a851999f61ad7ceabc2a945a3c31c60e8c914a4b.tar.bz2
getentropy: Declare it in <unistd.h> for __USE_MISC [BZ #17252]
Diffstat (limited to 'posix')
-rw-r--r--posix/unistd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/unistd.h b/posix/unistd.h
index 70b10c6..a8c9aa9 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;