summaryrefslogtreecommitdiff
path: root/string.c
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
commit5d6292809faa5474fee8575d428132f19f0b37e3 (patch)
treef4b9806e611bd5ad4099f563250c16f80fa81259 /string.c
parent6b1e24eaa5ec231f1ba5c4e773d0c3eb396dab1d (diff)
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
Diffstat (limited to 'string.c')
-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