24 |
#include <stdint.h> |
#include <stdint.h> |
25 |
#include <stdlib.h> |
#include <stdlib.h> |
26 |
|
|
27 |
#ifdef _WIN32 |
#ifdef __MINGW32__ |
28 |
#include <winsock2.h> |
#include <winsock2.h> |
29 |
|
typedef int socklen_t; |
30 |
#else |
#else |
31 |
|
#include <arpa/inet.h> |
32 |
|
#include <netdb.h> |
33 |
#include <netinet/in.h> |
#include <netinet/in.h> |
34 |
|
#include <sys/socket.h> |
35 |
|
#include <unistd.h> |
36 |
typedef int SOCKET; |
typedef int SOCKET; |
37 |
|
#define INVALID_SOCKET (-1) |
38 |
|
#define closesocket close |
39 |
#endif |
#endif |
40 |
|
|
41 |
#include "stream.h" |
#include "stream.h" |
200 |
|
|
201 |
int xgethostbyname(const char * host, struct in_addr * result) __attribute__((warn_unused_result)); |
int xgethostbyname(const char * host, struct in_addr * result) __attribute__((warn_unused_result)); |
202 |
|
|
203 |
|
#ifndef HAVE_INET_ATON |
204 |
|
int inet_aton(const char * name, struct in_addr * a); |
205 |
|
#endif |
206 |
|
|
207 |
#endif /* HTTP_SERVER_H_ */ |
#endif /* HTTP_SERVER_H_ */ |