* improve CPPFLAGS vs #define handling again: do not touch CPPFLAGS from

Build.sh but use 'if defined(PRECOND) && !defined(TOBEDEFINED)'if possible
* for all of the source code, drop annotations "imake style" (if we check
  for specific OSes, bad, instead of using mirtoconf checks proper) and
  "conditions correct?" (if I'm not entirely sure if that #if catches all
  cases and no false positives) where I can see it by grepping immediately
* bump mksh patchlevel
* refresh Makefiles
This commit is contained in:
tg
2009-07-25 21:31:27 +00:00
parent cfe6688a36
commit 758dc5c6fe
7 changed files with 25 additions and 13 deletions

4
main.c
View File

@ -33,7 +33,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.135 2009/07/25 20:52:41 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.136 2009/07/25 21:31:26 tg Exp $");
extern char **environ;
@ -788,6 +788,7 @@ tty_init(bool init_ttystate, bool need_tty)
tty_devtty = 1;
#ifdef _UWIN
/* XXX imake style */
if (isatty(3))
tfd = 3;
else
@ -1006,6 +1007,7 @@ ksh_dup2(int ofd, int nfd, bool errok)
errorf("too many files open in shell");
#ifdef __ultrix
/* XXX imake style */
if (rv >= 0)
fcntl(nfd, F_SETFD, 0);
#endif