aboutsummaryrefslogtreecommitdiffstats
path: root/signal.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-14 15:44:14 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-14 15:44:14 +0000
commitccf07bde231057ea5736fb6608447bb845c69125 (patch)
treead68ba817324476d5f41d6fb892e0fee8befec7f /signal.c
parent1e5a64261fd2f41eb49b20a3f4f2acaabffc5c7c (diff)
downloadruby-ccf07bde231057ea5736fb6608447bb845c69125.tar.gz
* 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
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c3
1 files changed, 3 insertions, 0 deletions
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 <unistd.h>
+#endif
#if defined(__native_client__) && defined(NACL_NEWLIB)
# include "nacl/signal.h"