Browse Source

[core] include <netdb.h> where needed

include <netdb.h> in files which use getaddrinfo()
  instead of exposing header in local header "sys-socket.h"
personal/stbuehler/mod-csrf
Glenn Strauss 5 years ago
parent
commit
8cf6e908d3
  1. 5
      src/http-header-glue.c
  2. 6
      src/mod_extforward.c
  3. 3
      src/network.c
  4. 3
      src/sys-socket.h

5
src/http-header-glue.c

@ -15,6 +15,11 @@
#include <time.h>
#include "sys-socket.h"
#ifndef _WIN32
#include <netdb.h>
#endif
/*
* This was 'borrowed' from tcpdump.
*

6
src/mod_extforward.c

@ -8,11 +8,15 @@
#include "configfile.h"
#include "sys-socket.h"
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "sys-socket.h"
#ifndef _WIN32
#include <netdb.h>
#endif
/**
* mod_extforward.c for lighttpd, by comman.kang <at> gmail <dot> com
* extended, modified by Lionel Elie Mamane (LEM), lionel <at> mamane <dot> lu

3
src/network.c

@ -11,6 +11,9 @@
#include "network_backends.h"
#include "sys-mmap.h"
#include "sys-socket.h"
#ifndef _WIN32
#include <netdb.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>

3
src/sys-socket.h

@ -16,9 +16,6 @@
#include <netinet/tcp.h>
#include <sys/un.h>
#include <arpa/inet.h>
#include <netdb.h>
#endif
#endif

Loading…
Cancel
Save