aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rc
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-26 10:19:23 +0000
committerrsc <devnull@localhost>2005-07-26 10:19:23 +0000
commit0e4068e8c46ae0b45616fe13ac01a449b68fbc06 (patch)
treec8894f32ab1a4c5e6483794e0892f3faf119093c /src/cmd/rc
parentcaf12d8c5b8a2069a394ab9a0968b1491a833c96 (diff)
downloadplan9port-0e4068e8c46ae0b45616fe13ac01a449b68fbc06.tar.gz
plan9port-0e4068e8c46ae0b45616fe13ac01a449b68fbc06.tar.bz2
plan9port-0e4068e8c46ae0b45616fe13ac01a449b68fbc06.zip
fixes from bengt for sun
Diffstat (limited to 'src/cmd/rc')
-rw-r--r--src/cmd/rc/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/rc/exec.c b/src/cmd/rc/exec.c
index e9fb4440..e1791542 100644
--- a/src/cmd/rc/exec.c
+++ b/src/cmd/rc/exec.c
@@ -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"
@@ -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 ...]]");