1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
|
/***************************************************************************
* Copyright (C) 2004, 2005, 2006 by Stephen McInerney *
* spm@stedee.id.au *
* *
* $Id: common.h 58 2006-01-02 10:40:49Z steve $
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
/***************************************************************************
***************************************************************************
* common.h
*
* Common definitions/includes
*
***************************************************************************
***************************************************************************/
#ifndef DNSHISTORY_COMMON_H
#define DNSHISTORY_COMMON_H 1
#if HAVE_CONFIG_H
# include <config.h>
#endif /* HAVE_CONFIG_H */
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif /* HAVE_SYS_STAT_H */
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
# include <stdlib.h>
# endif
# if !HAVE_MEMCPY
# define memcpy(d, s, n) bcopy ((s), (d), (n))
# define memmove(d, s, n) bcopy ((s), (d), (n))
# endif
#endif /* STDC_HEADERS */
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif /* HAVE_STRING_H */
#if HAVE_STRINGS_H
# include <strings.h>
#endif /* HAVE_STRINGS_H */
#define __USE_XOPEN
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif /* TIME_WITH_SYS_TIME */
#if HAVE_STDBOOL_H
# include <stdbool.h>
#endif /* HAVE_STDBOOL_H */
#if HAVE_PCRE_H
# include <pcre.h>
#elif HAVE_PCRE_PCRE_H
# include <pcre/pcre.h>
#endif /* HAVE_PCRE_H */
#if HAVE_DB_H
# include <db.h>
#endif /* HAVE_DB_H */
#if HAVE_MATH_H
# include <math.h>
#endif /* HAVE_MATH_H */
#if HAVE_GETOPT_H
# include <getopt.h>
#endif /* HAVE_GETOPT_H */
#if HAVE_ZLIB_H
# include <zlib.h>
#endif /* HAVE_ZLIB_H */
#if HAVE_UNISTD_H
# include <unistd.h>
#endif /* HAVE_ZLIB_H */
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif /* HAVE_ZLIB_H */
#if HAVE_NETINET_IN_H
# include <netinet/in.h> /* Get in_addr */
#endif /* HAVE_ZLIB_H */
#if HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif /* HAVE_ZLIB_H */
#if HAVE_NETDB_H
# include <netdb.h> /* Name lookups */
#endif /* HAVE_ZLIB_H */
#if HAVE_PTHREAD_H
# include <pthread.h>
#endif /* HAVE_ZLIB_H */
/********************/
#endif /* DNSHISTORY_COMMON_H */
/************************************************************************
************************************************************************
* END OF FILE *
************************************************************************
************************************************************************/
|