ruby-changes:43176
From: nobu <ko1@a...>
Date: Wed, 1 Jun 2016 22:17:39 +0900 (JST)
Subject: [ruby-changes:43176] nobu:r55250 (trunk): string.c: fallback to crypt_r
nobu 2016-06-01 22:17:31 +0900 (Wed, 01 Jun 2016) New Revision: 55250 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55250 Log: string.c: fallback to crypt_r * string.c: prefer crypt_r to crypt iff system crypt nor crypt_r are not provided. Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 55249) +++ string.c (revision 55250) @@ -29,8 +29,11 @@ https://github.com/ruby/ruby/blob/trunk/string.c#L29 #include <unistd.h> #endif -#ifdef HAVE_CRYPT_R -#include <crypt.h> +#if defined HAVE_CRYPT_R +# include <crypt.h> +#elif !defined HAVE_CRYPT +# include "missing/crypt.h" +# define HAVE_CRYPT_R 1 #endif #define STRING_ENUMERATORS_WANTARRAY 0 /* next major */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/