diff options
| author | Federico G. Schwindt <fgsch@lodoss.net> | 2013-10-23 16:00:26 +0100 |
|---|---|---|
| committer | Federico G. Schwindt <fgsch@lodoss.net> | 2013-10-23 16:00:26 +0100 |
| commit | 8e6db769ac549cfe26042f7d51ae8a301d8fc569 (patch) | |
| tree | 258cb9f9ed690c9dd85bf566937d6df8fe89e69b /configure.ng | |
| parent | 8a041373bb81f75a91a00e692979619938199989 (diff) | |
| download | ngircd-8e6db769ac549cfe26042f7d51ae8a301d8fc569.tar.gz ngircd-8e6db769ac549cfe26042f7d51ae8a301d8fc569.zip | |
Check and call arc4random_stir() if present
FreeBSD prior to 10.0 does not automatically stir on fork(). Same with current NetBSD. If arc4random_stir() is present assume is needed and call it instead of srand().
Diffstat (limited to 'configure.ng')
| -rw-r--r-- | configure.ng | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ng b/configure.ng index 16f970f8..e3f51cf0 100644 --- a/configure.ng +++ b/configure.ng @@ -187,9 +187,9 @@ AC_CHECK_FUNCS([ \ # Optional functions AC_CHECK_FUNCS_ONCE([ \ - arc4random gai_strerror getaddrinfo getnameinfo inet_aton sigaction \ - sigprocmask snprintf vsnprintf strdup strndup strlcpy strlcat strtok_r \ - waitpid]) + arc4random arc4random_stir gai_strerror getaddrinfo getnameinfo inet_aton + sigaction sigprocmask snprintf vsnprintf strdup strndup strlcpy strlcat \ + strtok_r waitpid]) # -- Configuration options -- |