tfixes from bengt for sun - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 0e4068e8c46ae0b45616fe13ac01a449b68fbc06 (DIR) parent caf12d8c5b8a2069a394ab9a0968b1491a833c96 (HTM) Author: rsc <devnull@localhost> Date: Tue, 26 Jul 2005 10:19:23 +0000 fixes from bengt for sun Diffstat: M src/cmd/rc/exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- (DIR) diff --git a/src/cmd/rc/exec.c b/src/cmd/rc/exec.c t@@ -1,9 +1,9 @@ #include <u.h> #include <signal.h> -#include <sys/ioctl.h> #if defined(PLAN9PORT) && defined(__sun__) # define BSD_COMP /* sigh. for TIOCNOTTY */ #endif +#include <sys/ioctl.h> #include "rc.h" #include "getflags.h" #include "exec.h" t@@ -115,7 +115,7 @@ main(int argc, char *argv[]) int i; /* needed for rcmain later */ - setenv("PLAN9", unsharp("#9"), 1); + putenv("PLAN9", unsharp("#9")); argc=getflags(argc, argv, "srdiIlxepvVc:1m:1[command]", 1); if(argc==-1) usage("[file [arg ...]]");