summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2006-02-14 07:01:21 +0000
committerGuillem Jover <guillem@hadrons.org>2008-05-06 08:51:43 +0300
commit67e48af044abf058167a60b79d4165f0431fac5a (patch)
treeae12bf08c9acfa9837d1ac20a4702e198e151426 /include
parent8a2e8584d9a46c0bf8ba431098741cee7e548ddc (diff)
downloadlibbsd-67e48af044abf058167a60b79d4165f0431fac5a.tar.gz
Remove unused includes and protect header
Diffstat (limited to 'include')
-rw-r--r--include/bsd/getopt.h6
-rw-r--r--include/bsd/stdlib.h3
2 files changed, 6 insertions, 3 deletions
diff --git a/include/bsd/getopt.h b/include/bsd/getopt.h
index bf78f01..0df89da 100644
--- a/include/bsd/getopt.h
+++ b/include/bsd/getopt.h
@@ -1,4 +1,10 @@
+#ifndef LIBBSD_GETOPT_H
+#define LIBBSD_GETOPT_H
+
#include <getopt.h>
+
extern int optreset;
int bsd_getopt (int, char **, char *);
+
+#endif
diff --git a/include/bsd/stdlib.h b/include/bsd/stdlib.h
index 4881e57..ee358b6 100644
--- a/include/bsd/stdlib.h
+++ b/include/bsd/stdlib.h
@@ -1,9 +1,6 @@
#ifndef LIBBSD_STDLIB_H
#define LIBBSD_STDLIB_H
-#include <sys/types.h>
-#include <stdio.h>
-
const char *fmtcheck(const char *, const char *);
#endif