diff --git a/ChangeLog b/ChangeLog index 4c35b38225..c2bcdab59e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Jul 28 16:06:36 2008 NAKAMURA Usaku + + * win32/win32.c (MAXPATHLEN): define before use. + Mon Jul 28 16:01:12 2008 NAKAMURA Usaku * 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 +#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 -#else -# define MAXPATHLEN 512 -#endif - static NtCmdLineElement ** cmdglob(NtCmdLineElement *patt, NtCmdLineElement **tail)