summaryrefslogtreecommitdiff
path: root/src/lemon.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-10-20 16:57:45 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2016-10-20 16:57:45 -0400
commit76514e7a3987e7e1b020f8904d142c1b7ac271bd (patch)
tree38a764f2e6764d08c28b7505e4440ad48276311e /src/lemon.c
parent30c54b65e4a3fbf77d2d11c11432d8a923c62d52 (diff)
downloadlighttpd-git-76514e7a3987e7e1b020f8904d142c1b7ac271bd.tar.gz
[lemon] standalone; remove #include "first.h"
also remove extern declarations for functions from standard headers
Diffstat (limited to 'src/lemon.c')
-rw-r--r--src/lemon.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/lemon.c b/src/lemon.c
index f0358d46..aa86b09b 100644
--- a/src/lemon.c
+++ b/src/lemon.c
@@ -1,4 +1,6 @@
-#include "first.h"
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
/*
** This file contains all sources (including headers) to the LEMON
@@ -14,17 +16,10 @@
#include <ctype.h>
#include <stdlib.h>
#include <inttypes.h>
+#include <unistd.h> /* access() */
#define UNUSED(x) ( (void)(x) )
-extern void qsort();
-extern double strtod();
-extern long strtol();
-extern void free();
-extern int access();
-extern int atoi();
-extern char *getenv();
-
#ifndef __WIN32__
# if defined(_WIN32) || defined(WIN32)
# define __WIN32__
@@ -48,7 +43,7 @@ extern char *getenv();
void *msort(void *list, void **next, int(*cmp)(void *, void *));
-extern void memory_error() NORETURN;
+static void memory_error() NORETURN;
/******** From the file "action.h" *************************************/
struct action *Action_new();
@@ -2742,7 +2737,6 @@ struct lemon *lemp;
return;
}
- extern int access();
/* Search for the file "name" which is in the same directory as
** the exacutable */
PRIVATE char *pathsearch(argv0,name,modemask)