diff options
author | Steve Bennett <steveb@workware.net.au> | 2011-06-09 11:01:03 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2011-06-09 11:45:39 +1000 |
commit | f8b69284cf7e30abacd6c30adce12e953698f622 (patch) | |
tree | 6d49c1f48c9328662ceb344cd910b9eb9ca1fe5e /make-bootstrap-jim | |
parent | fb30e73b7cf6b9ad0ad75aadf73679796789f51c (diff) | |
download | jimtcl-f8b69284cf7e30abacd6c30adce12e953698f622.zip jimtcl-f8b69284cf7e30abacd6c30adce12e953698f622.tar.gz jimtcl-f8b69284cf7e30abacd6c30adce12e953698f622.tar.bz2 |
Provide a fallback basic [exec] for (e.g.) mingw32
Use system() to implement [exec] if vfork() and waitpid()
are not available. This is just functional enough for simple tasks.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'make-bootstrap-jim')
-rwxr-xr-x | make-bootstrap-jim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/make-bootstrap-jim b/make-bootstrap-jim index c68c756..11f7a2f 100755 --- a/make-bootstrap-jim +++ b/make-bootstrap-jim @@ -57,6 +57,17 @@ for i in $allexts; do echo "#define jim_ext_$i" done +# Can we make a bootstrap jimsh work even on mingw32? +cat <<EOF +#ifdef __MINGW32__ +#define MKDIR_ONE_ARG +#define HAVE_SYSTEM +#else +#define HAVE_VFORK +#define HAVE_WAITPID +#endif +EOF + # Now output header files, removing references to jim header files for i in utf8.h jim.h jim-subcmd.h jimregexp.h ; do sed -e '/#include.*jim/d' -e '/#include.*utf8/d' $i |