summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-28 07:07:12 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-28 07:07:12 +0000
commitb50f3363806a663abcb9962638fb6c4edc861eba (patch)
treef373c2de2a66ee7b911897c593b7601a57129d0c /win32
parentb74a6dde1bd8552806de628b2167a914bd5059db (diff)
downloadruby-b50f3363806a663abcb9962638fb6c4edc861eba.tar.gz
ruby-b50f3363806a663abcb9962638fb6c4edc861eba.tar.xz
ruby-b50f3363806a663abcb9962638fb6c4edc861eba.zip
* win32/win32.c (MAXPATHLEN): define before use.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 5c525d574..dba0c71ce 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -916,6 +916,12 @@ rb_w32_aspawn(int mode, const char *prog, char *const *argv)
return rb_w32_spawn(mode, rb_w32_join_argv(cmd, argv), prog);
}
+#ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#else
+# define MAXPATHLEN 512
+#endif
+
static struct ChildRecord *
CreateChild(const char *cmd, const char *prog, SECURITY_ATTRIBUTES *psa,
HANDLE hInput, HANDLE hOutput, HANDLE hError)
@@ -1107,12 +1113,6 @@ insert(const char *path, VALUE vinfo, void *enc)
return 0;
}
-#ifdef HAVE_SYS_PARAM_H
-# include <sys/param.h>
-#else
-# define MAXPATHLEN 512
-#endif
-
static NtCmdLineElement **
cmdglob(NtCmdLineElement *patt, NtCmdLineElement **tail)