summaryrefslogtreecommitdiffstats
path: root/server/util.c
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2000-06-12 23:47:17 +0200
committerRyan Bloom <rbb@apache.org>2000-06-12 23:47:17 +0200
commit580852da857f4b3626d0a4dbbfb942a65b2c0fe6 (patch)
tree46e18489ccac089d74f7b9ffef1defd601a9562f /server/util.c
parentNew mod_proxy/mod_cache (file cache) for 2.0. This uses a caching API so (diff)
downloadapache2-580852da857f4b3626d0a4dbbfb942a65b2c0fe6.tar.xz
apache2-580852da857f4b3626d0a4dbbfb942a65b2c0fe6.zip
Clean up a big chunk of ap_config.h. This basically stops ap_config.h from
including any files. Because of this change, other files must include their own headers. I also cleaned up a couple of other bugs in some modules because I had to compile them all. I expect this to break multiple platforms, but this will be fixed over time. The massive configure cleanup is almost done. I will go through the files one more time after this commit. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85553 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/util.c')
-rw-r--r--server/util.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/server/util.c b/server/util.c
index 0ae566addb..57cd73fb25 100644
--- a/server/util.c
+++ b/server/util.c
@@ -80,12 +80,18 @@
#include "http_config.h"
#include "util_ebcdic.h"
-#if defined(SUNOS4)
-/* stdio.h has been read in ap_config.h already. Add missing prototypes here: */
-extern int fgetc(FILE *);
-extern char *fgets(char *s, int, FILE*);
-extern int fclose(FILE *);
+#include <stdio.h>
+#include <unistd.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <arpa/inet.h>
+#ifdef HAVE_PWD_H
+#include <pwd.h>
#endif
+#ifdef HAVE_GRP_H
+#include <grp.h>
+#endif
+
/* A bunch of functions in util.c scan strings looking for certain characters.
* To make that more efficient we encode a lookup table. The test_char_table