/src/bash-4.0/execute_cmd.c: In function `time_command': /src/bash-4.0/execute_cmd.c:1145: error: storage size of `dtz' isn't known make: *** [execute_cmd.o] Error 1
/usr/include/sys/time.h: #if defined(_ALL_SOURCE) /* * historical structure for use in 2nd paramter of gettimeofday(). * NOTE: * The use of this structure in gettimeofday() has been DEPRECATED * and is no longer supported. */ struct timezone { int tz_minuteswest; /* of Greenwich */ int tz_dsttime; /* type of dst correction to apply */ }; I forgot to save the error in getcwd.c this time, but it is that MP_RMDOT isn't known. This time I figured out why it doesn't break everywhere and moved the #includes accordingly. C:\src\bash-4.0>diff -u execute_cmd.c.orig execute_cmd.c --- execute_cmd.c.orig 2009-06-20 03:13:33.859375000 -0700 +++ execute_cmd.c 2009-06-20 03:24:35.078125000 -0700 @@ -18,6 +18,10 @@ along with Bash. If not, see . */ +#if defined(__INTERIX) && !defined(_ALL_SOURCE) +#define _ALL_SOURCE +#endif + #include "config.h" #if !defined (__GNUC__) && !defined (HAVE_ALLOCA_H) && defined (_AIX) C:\src\bash-4.0\lib\sh>diff -u getcwd.c.orig getcwd.c --- getcwd.c.orig 2009-06-20 03:50:48.156250000 -0700 +++ getcwd.c 2009-06-20 03:54:25.140625000 -0700 @@ -66,6 +66,11 @@ we need to check inode number equivalence the hard way. Return 1 if the inode corresponding to PATH/DIR is identical to THISINO. */ #if defined (BROKEN_DIRENT_D_INO) + +#include "command.h" +#include "general.h" +#include "externs.h" + static int _path_checkino (dotp, name, thisino) char *dotp; The define comes from: C:\src\bash-4.0\configure(29974):opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;; C:\src\bash-4.0\configure.in(1028):opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;; Is this correct? Thanks, - Jay