diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-28 07:07:12 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-28 07:07:12 +0000 |
commit | 009db87ce270709bd1873eda085586d7ae7b573b (patch) | |
tree | f373c2de2a66ee7b911897c593b7601a57129d0c | |
parent | 9b3aade1b6e848e22114e987e7f1d07c859e37c1 (diff) | |
download | ruby-009db87ce270709bd1873eda085586d7ae7b573b.tar.gz |
* win32/win32.c (MAXPATHLEN): define before use.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | win32/win32.c | 12 |
2 files changed, 10 insertions, 6 deletions
@@ -1,3 +1,7 @@ +Mon Jul 28 16:06:36 2008 NAKAMURA Usaku <usa@ruby-lang.org> + + * win32/win32.c (MAXPATHLEN): define before use. + Mon Jul 28 16:01:12 2008 NAKAMURA Usaku <usa@ruby-lang.org> * thread_win32.[ch]: moved definitions of cond_every_entry and diff --git a/win32/win32.c b/win32/win32.c index 5c525d574b..dba0c71ce2 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) |