aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-16 05:05:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-16 05:05:42 +0000
commit606ac6a48bd687a40fa63e4c8deb7467af34523b (patch)
treef4b9806e611bd5ad4099f563250c16f80fa81259
parentc036198cff12c13994cbc0e4de6a6340d3ba9060 (diff)
downloadruby-606ac6a48bd687a40fa63e4c8deb7467af34523b.tar.gz
no crypt.h on FreeBSD 12
* string.c (crypt.h): crypt_r() was added in FreeBSD 12.0 but is declared in unistd.h. [ruby-core:78664] [Bug #13038] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--string.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/string.c b/string.c
index fd17355346..04737f0713 100644
--- a/string.c
+++ b/string.c
@@ -30,7 +30,9 @@
#endif
#if defined HAVE_CRYPT_R
+# if defined HAVE_CRYPT_H
# include <crypt.h>
+# endif
#elif !defined HAVE_CRYPT
# include "missing/crypt.h"
# define HAVE_CRYPT_R 1