first step for GNU/Cygwin support

This commit is contained in:
tg
2005-06-24 15:36:57 +00:00
parent c4629baed6
commit 37d4f1e874
3 changed files with 10 additions and 8 deletions

6
main.c
View File

@@ -1,4 +1,4 @@
/** $MirOS: src/bin/mksh/main.c,v 1.14 2005/06/08 22:35:45 tg Exp $ */
/** $MirOS: src/bin/mksh/main.c,v 1.15 2005/06/24 15:36:57 tg Exp $ */
/* $OpenBSD: main.c,v 1.38 2005/03/30 17:16:37 deraadt Exp $ */
/* $OpenBSD: tty.c,v 1.8 2005/03/30 17:16:37 deraadt Exp $ */
/* $OpenBSD: io.c,v 1.21 2005/03/30 17:16:37 deraadt Exp $ */
@@ -13,7 +13,7 @@
#include <time.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.14 2005/06/08 22:35:45 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.15 2005/06/24 15:36:57 tg Exp $");
const char ksh_version[] = "@(#)MIRBSD KSH R23 2005/06/08";
@@ -123,6 +123,7 @@ main(int argc, char *argv[])
init_histvec();
def_path = _PATH_DEFPATH;
#if !defined(__CYGWIN__)
{
size_t len;
char *new;
@@ -132,6 +133,7 @@ main(int argc, char *argv[])
def_path = new;
}
}
#endif
/* Set PATH to def_path (will set the path global variable).
* (import of environment below will probably change this setting).