ruby-changes:46564
From: usa <ko1@a...>
Date: Fri, 12 May 2017 18:37:04 +0900 (JST)
Subject: [ruby-changes:46564] usa:r58679 (trunk): unistd.h is only available when HAVE_UNISTD_H is 1
usa 2017-05-12 18:36:57 +0900 (Fri, 12 May 2017) New Revision: 58679 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58679 Log: unistd.h is only available when HAVE_UNISTD_H is 1 Modified files: trunk/spec/rubyspec/optional/capi/ext/thread_spec.c Index: spec/rubyspec/optional/capi/ext/thread_spec.c =================================================================== --- spec/rubyspec/optional/capi/ext/thread_spec.c (revision 58678) +++ spec/rubyspec/optional/capi/ext/thread_spec.c (revision 58679) @@ -4,7 +4,9 @@ https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/optional/capi/ext/thread_spec.c#L4 #include <math.h> #include <errno.h> +#if HAVE_UNISTD_H #include <unistd.h> +#endif #ifdef __cplusplus extern "C" { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/