summaryrefslogtreecommitdiff
path: root/src/include/lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/lib.h')
-rw-r--r--src/include/lib.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/include/lib.h b/src/include/lib.h
index 4ea5cd1f..8635802f 100644
--- a/src/include/lib.h
+++ b/src/include/lib.h
@@ -26,25 +26,7 @@ extern "C" {
const char *if_to_a(int, int);
}
-#ifdef STDLIB_H_DECLARES_GETOPT
-#include <stdlib.h>
-#else /* not STDLIB_H_DECLARES_GETOPT */
-#ifdef UNISTD_H_DECLARES_GETOPT
-#include <sys/types.h>
-#include <unistd.h>
-#else /* not UNISTD_H_DECLARES_GETOPT */
-extern "C" {
- int getopt(int, char *const *, const char *);
-}
-#endif /* not UNISTD_H_DECLARES_GETOPT */
-
-extern "C" {
- extern char *optarg;
- extern int optind;
- extern int opterr;
-}
-
-#endif /* not STDLIB_H_DECLARES_GETOPT */
+#include <getopt.h>
char *strsave(const char *s);
int is_prime(unsigned);