30 |
|
|
31 |
|
#include "defaults.h" |
32 |
|
|
33 |
+ |
#include <stddef.h> |
34 |
|
#include <stdlib.h> |
35 |
|
#include <string.h> |
36 |
|
|
48 |
|
#endif |
49 |
|
#endif |
50 |
|
|
50 |
– |
#ifdef HAVE_STDDEF_H |
51 |
– |
# include <stddef.h> |
52 |
– |
#else /* This is basically what stddef.h provides on most systems */ |
53 |
– |
# ifndef NULL |
54 |
– |
# define NULL ((void*)0) |
55 |
– |
# endif |
56 |
– |
# ifndef offsetof |
57 |
– |
# define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) |
58 |
– |
# endif |
59 |
– |
#endif |
60 |
– |
|
51 |
|
#ifdef HAVE_CRYPT_H |
52 |
|
#include <crypt.h> |
53 |
|
#endif |
62 |
|
#include <time.h> |
63 |
|
#include <fcntl.h> |
64 |
|
|
75 |
– |
#ifdef HAVE_LIBGEN_H |
76 |
– |
#include <libgen.h> |
77 |
– |
#endif |
78 |
– |
|
65 |
|
#include <stdarg.h> |
66 |
|
#include <signal.h> |
67 |
|
#include <ctype.h> |
68 |
|
|
83 |
– |
#ifdef _WIN32 |
84 |
– |
#define PATH_MAX (MAX_PATH - 1) |
85 |
– |
#define WIN32_LEAN_AND_MEAN |
86 |
– |
#include <windows.h> |
87 |
– |
#include <winsock.h> |
88 |
– |
#else |
69 |
|
#include <dirent.h> |
70 |
|
#include <netdb.h> |
71 |
|
#include <sys/socket.h> |
73 |
|
#include <arpa/inet.h> |
74 |
|
#include <sys/time.h> |
75 |
|
#include <sys/file.h> |
96 |
– |
#endif |
76 |
|
|
77 |
|
#include <limits.h> |
78 |
|
|
100 |
|
#endif |
101 |
|
|
102 |
|
#include "inet_misc.h" |
124 |
– |
|
125 |
– |
#ifdef _WIN32 |
126 |
– |
#undef strcasecmp |
127 |
– |
#define strcasecmp stricmp |
128 |
– |
#endif |
129 |
– |
|
103 |
|
#endif |