1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of either:
4  *
5  *   a) The GNU Lesser General Public License as published by the Free
6  *      Software Foundation; either version 2.1, or (at your option) any
7  *      later version,
8  *
9  *   OR
10  *
11  *   b) The two-clause BSD license.
12  *
13  * These licenses can be found with the distribution in the file LICENSES
14  */
15 
16 
17 
18 
19 #ifndef INC_SPF_SYS_CONFIG
20 #define INC_SPF_SYS_CONFIG
21 
22 #include "spf_win32_internal.h"
23 
24 #ifdef HAVE_CONFIG_H
25 # include "config.h"
26 #endif
27 
28 #ifdef HAVE_SYS_TYPES_H
29 #include <sys/types.h>			/* types (u_char .. etc..) */
30 #endif
31 
32 #ifdef HAVE_SYS_SOCKET_H
33 # include <sys/socket.h>		/* inet_ functions / structs */
34 #endif
35 #ifdef HAVE_NETINET_IN_H
36 # include <netinet/in.h>		/* inet_ functions / structs */
37 #endif
38 #ifdef HAVE_ARPA_NAMESER_H
39 # ifdef HAVE_NS_TYPE
40 #  include <arpa/nameser.h>		/* DNS HEADER struct */
41 # else
42 /* looks like they have bind4/8 include files, use bind9 */
43 #  define HAVE_BIND8
44 #  include "../libreplace/arpa_nameser.h"
45 #  define HAVE_NS_TYPE 1		/* we have it now		*/
46 # endif
47 #endif
48 #ifdef HAVE_ARPA_INET_H
49 # include <arpa/inet.h>			/* in_addr struct */
50 #endif
51 
52 #ifndef HAVE_U_INT8_T
53 # ifdef HAVE_UINT8_T
54     typedef uint8_t u_int8_t;
55 # else
56     typedef unsigned char u_int8_t;
57 # endif
58 #endif
59 
60 #ifndef HAVE_U_INT16_T
61 # ifdef HAVE_UINT16_T
62     typedef uint16_t u_int16_t;
63 # else
64     typedef unsigned short u_int16_t;
65 # endif
66 #endif
67 
68 #ifndef HAVE_U_INT32_T
69 # ifdef HAVE_UINT32_T
70     typedef uint32_t u_int32_t;
71 # else
72     typedef unsigned int u_int32_t;
73 # endif
74 #endif
75 
76 #endif
77