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
This commit is contained in:
parent
6b1e24eaa5
commit
5d6292809f
2
string.c
2
string.c
@ -30,7 +30,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined HAVE_CRYPT_R
|
#if defined HAVE_CRYPT_R
|
||||||
|
# if defined HAVE_CRYPT_H
|
||||||
# include <crypt.h>
|
# include <crypt.h>
|
||||||
|
# endif
|
||||||
#elif !defined HAVE_CRYPT
|
#elif !defined HAVE_CRYPT
|
||||||
# include "missing/crypt.h"
|
# include "missing/crypt.h"
|
||||||
# define HAVE_CRYPT_R 1
|
# define HAVE_CRYPT_R 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user