summaryrefslogtreecommitdiff
path: root/src/lib9/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/main.c')
-rw-r--r--src/lib9/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib9/main.c b/src/lib9/main.c
index 816494af0..088b09523 100644
--- a/src/lib9/main.c
+++ b/src/lib9/main.c
@@ -1,3 +1,5 @@
+// +build !plan9
+
/*
Plan 9 from User Space src/lib9/main.c
http://code.swtch.com/plan9port/src/tip/src/lib9/main.c
@@ -50,8 +52,8 @@ main(int argc, char **argv)
// don't display the crash dialog
DWORD mode = SetErrorMode(SEM_NOGPFAULTERRORBOX);
SetErrorMode(mode | SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX);
- argv0 = argv[0];
#endif
+ argv0 = argv[0];
p9main(argc, argv);
exits("main");
return 99;