summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-14 16:01:28 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-14 16:01:28 +0000
commit887063f44b21a9e7b2b1e7525de61d517474659f (patch)
treeba13a91ac88a6fcc267414367a49cc9a5fdeacaf /missing
parentd19cda5fa6a0f5a1395c47603e21d8db219c8280 (diff)
fix mswin32 build error.
* missing/setproctitle.c: oadd #ifdef HAVE_UNISTD_H. * win32/Makefile.sub (MISSING): add setproctitle.obj git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r--missing/setproctitle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/missing/setproctitle.c b/missing/setproctitle.c
index a9b4fbe825..f4078bd993 100644
--- a/missing/setproctitle.c
+++ b/missing/setproctitle.c
@@ -39,7 +39,9 @@
#include <stdarg.h>
#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#ifdef HAVE_SYS_PSTAT_H
#include <sys/pstat.h>
#endif