aboutsummaryrefslogtreecommitdiffstats
path: root/sisinstall/sismain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sisinstall/sismain.cpp')
-rw-r--r--sisinstall/sismain.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sisinstall/sismain.cpp b/sisinstall/sismain.cpp
index b673c13..70d285f 100644
--- a/sisinstall/sismain.cpp
+++ b/sisinstall/sismain.cpp
@@ -17,7 +17,9 @@
# include <newt.h>
#endif
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <getopt.h>
bool usenewt = false;
@@ -66,7 +68,7 @@ void printHelp()
));
}
-void main(int argc, char* argv[])
+int main(int argc, char* argv[])
{
char* filename = 0;
char option;
@@ -200,6 +202,6 @@ void main(int argc, char* argv[])
newtFinished();
}
#endif
- exit(0);
+ return 0;
}