aboutsummaryrefslogtreecommitdiffstats
path: root/sisinstall
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2002-07-14 19:08:08 +0000
committerFritz Elfert <felfert@to.com>2002-07-14 19:08:08 +0000
commit28e01b8c6a137a9e98d95689be3d3d72be18d9d7 (patch)
treef011d3dba1f05cc8c08b582ba4b9568d3dfc94af /sisinstall
parent838b2558b635d0ec27785e1280904fdea61bc935 (diff)
downloadplptools-28e01b8c6a137a9e98d95689be3d3d72be18d9d7.tar.gz
plptools-28e01b8c6a137a9e98d95689be3d3d72be18d9d7.tar.bz2
plptools-28e01b8c6a137a9e98d95689be3d3d72be18d9d7.zip
- Non-KDE stuff now builds correctly with gcc3
Diffstat (limited to 'sisinstall')
-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;
}