libspf2 1.2.10
|
00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of either: 00004 * 00005 * a) The GNU Lesser General Public License as published by the Free 00006 * Software Foundation; either version 2.1, or (at your option) any 00007 * later version, 00008 * 00009 * OR 00010 * 00011 * b) The two-clause BSD license. 00012 * 00013 * These licenses can be found with the distribution in the file LICENSES 00014 */ 00015 00016 00017 00018 00019 #ifndef INC_SPF_SYS_CONFIG 00020 #define INC_SPF_SYS_CONFIG 00021 00022 #include "spf_win32_internal.h" 00023 00024 #ifdef HAVE_CONFIG_H 00025 # include "config.h" 00026 #endif 00027 00028 #ifdef HAVE_SYS_TYPES_H 00029 #include <sys/types.h> /* types (u_char .. etc..) */ 00030 #endif 00031 00032 #ifdef HAVE_SYS_SOCKET_H 00033 # include <sys/socket.h> /* inet_ functions / structs */ 00034 #endif 00035 #ifdef HAVE_NETINET_IN_H 00036 # include <netinet/in.h> /* inet_ functions / structs */ 00037 #endif 00038 #ifdef HAVE_ARPA_NAMESER_H 00039 # ifdef HAVE_NS_TYPE 00040 # include <arpa/nameser.h> /* DNS HEADER struct */ 00041 # else 00042 /* looks like they have bind4/8 include files, use bind9 */ 00043 # define HAVE_BIND8 00044 # include "../libreplace/arpa_nameser.h" 00045 # define HAVE_NS_TYPE 1 /* we have it now */ 00046 # endif 00047 #endif 00048 #ifdef HAVE_ARPA_INET_H 00049 # include <arpa/inet.h> /* in_addr struct */ 00050 #endif 00051 00052 #ifndef HAVE_U_INT8_T 00053 # ifdef HAVE_UINT8_T 00054 typedef uint8_t u_int8_t; 00055 # else 00056 typedef unsigned char u_int8_t; 00057 # endif 00058 #endif 00059 00060 #ifndef HAVE_U_INT16_T 00061 # ifdef HAVE_UINT16_T 00062 typedef uint16_t u_int16_t; 00063 # else 00064 typedef unsigned short u_int16_t; 00065 # endif 00066 #endif 00067 00068 #ifndef HAVE_U_INT32_T 00069 # ifdef HAVE_UINT32_T 00070 typedef uint32_t u_int32_t; 00071 # else 00072 typedef unsigned int u_int32_t; 00073 # endif 00074 #endif 00075 00076 #endif