summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2014-08-12 11:39:45 -0400
committerSteve Dickson <steved@redhat.com>2014-08-12 14:39:55 -0400
commitd720dd786be35396b2f58d1a08e536ebddaa356e (patch)
tree27ede0c07848333a98d19fa10d44c4e60258c604
parent6fb15bbeb8fb10119dc8eacdd1686ede1efea729 (diff)
downloadcthon04-d720dd786be35396b2f58d1a08e536ebddaa356e.tar.gz
cthon04-d720dd786be35396b2f58d1a08e536ebddaa356e.tar.xz
cthon04-d720dd786be35396b2f58d1a08e536ebddaa356e.zip
Eliminated implicit declaration of 'exit' warnings
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--domount.c3
-rw-r--r--getopt.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/domount.c b/domount.c
index 8982684..da85d21 100644
--- a/domount.c
+++ b/domount.c
@@ -8,6 +8,9 @@
*/
#include <stdio.h>
+#ifdef LINUX
+#include <stdlib.h>
+#endif
main(argc, argv)
int argc;
diff --git a/getopt.c b/getopt.c
index da64713..222037c 100644
--- a/getopt.c
+++ b/getopt.c
@@ -36,6 +36,9 @@
(void) write(2, errbuf, 2);}
#include <string.h>
+#ifdef LINUX
+#include <stdlib.h>
+#endif
int opterr = 1;
int optind = 1;