X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftcpdchk.c;h=a97134fbcfc62b48a35f66d8f16fde8fe52464c4;hb=ec0326d927a40c3b5d917d35432ee06ad554f023;hp=d19f8f6de61391beb81e7ee968b087401e2cf803;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0;p=yaz-moved-to-github.git diff --git a/src/tcpdchk.c b/src/tcpdchk.c index d19f8f6..a97134f 100644 --- a/src/tcpdchk.c +++ b/src/tcpdchk.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ /** @@ -7,27 +7,38 @@ * \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 @@ -99,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