From ccf07bde231057ea5736fb6608447bb845c69125 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 14 May 2013 15:44:14 +0000 Subject: [PATCH] * signal.c: need to include unistd.h for write(2). unistd.h is now included via ruby/defines.h, but should implicitly include here. (suggested by kosaki) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ signal.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index e01f5a70ff..f5c5b81e65 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed May 15 00:42:54 2013 NAKAMURA Usaku + + * signal.c: need to include unistd.h for write(2). + unistd.h is now included via ruby/defines.h, but should implicitly + include here. (suggested by kosaki) + Tue May 14 23:43:05 2013 Tanaka Akira * ext/socket/.document: Add ifaddr.c. diff --git a/signal.c b/signal.c index 7b58840d28..47c096b24c 100644 --- a/signal.c +++ b/signal.c @@ -19,6 +19,9 @@ #include "ruby_atomic.h" #include "eval_intern.h" #include "internal.h" +#ifdef HAVE_UNISTD_H +# include +#endif #if defined(__native_client__) && defined(NACL_NEWLIB) # include "nacl/signal.h"