ruby-changes:45018
From: nobu <ko1@a...>
Date: Fri, 16 Dec 2016 14:05:49 +0900 (JST)
Subject: [ruby-changes:45018] nobu:r57091 (trunk): no crypt.h on FreeBSD 12
nobu 2016-12-16 14:05:42 +0900 (Fri, 16 Dec 2016) New Revision: 57091 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57091 Log: 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] Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 57090) +++ string.c (revision 57091) @@ -30,7 +30,9 @@ https://github.com/ruby/ruby/blob/trunk/string.c#L30 #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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/