X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftcpdchk.c;h=26acb8e1fd554ed98a6ef37c3847e7d8b23f3344;hp=1a9d7868884b50cb74f5a13ff5d798bcac8c4956;hb=896b145fa7a02199bfc3e8aa824c018b9d7cbf98;hpb=8d691989077a0addcbd840d769dce6700f3d9622 diff --git a/src/tcpdchk.c b/src/tcpdchk.c index 1a9d786..26acb8e 100644 --- a/src/tcpdchk.c +++ b/src/tcpdchk.c @@ -1,35 +1,44 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. - * - * $Id: tcpdchk.c,v 1.9 2007-01-03 08:42:15 adam Exp $ */ /** * \file tcpdchk.c * \brief Implements TCP WRAPPER check. */ +#if HAVE_CONFIG_H +#include +#endif + #include #include +#ifdef WIN32 +#include +#endif + #if HAVE_SYS_TYPES_H #include #endif -#ifdef WIN32 -#include -#else +#if HAVE_NETINET_IN_H #include -#include +#endif + +#if HAVE_ARPA_INET_H #include -#include #endif #if HAVE_SYS_SOCKET_H +/* freebsd wants this for AF_INET */ #include #endif -#include +#if HAVE_NETDB_H +#include +#endif + #include #include #include @@ -101,6 +110,7 @@ int check_ip_tcpd(void *cd, const char *addr, int len, int type) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab