string.c: fallback to crypt_r
* string.c: prefer crypt_r to crypt iff system crypt nor crypt_r are not provided. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9eca2ced64
commit
a94201243e
7
string.c
7
string.c
@ -29,8 +29,11 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CRYPT_R
|
#if defined HAVE_CRYPT_R
|
||||||
#include <crypt.h>
|
# include <crypt.h>
|
||||||
|
#elif !defined HAVE_CRYPT
|
||||||
|
# include "missing/crypt.h"
|
||||||
|
# define HAVE_CRYPT_R 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define STRING_ENUMERATORS_WANTARRAY 0 /* next major */
|
#define STRING_ENUMERATORS_WANTARRAY 0 /* next major */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user