X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftcpdchk.c;h=24bf471c3d0c1e37b1c469cc6dd450bc739ef551;hb=3dc0c503f9594142c8568fabb2c8e354377251ef;hp=a2d1f4d230bf14d2fc6c7d0ecd1f831b6903af9c;hpb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505;p=yaz-moved-to-github.git diff --git a/src/tcpdchk.c b/src/tcpdchk.c index a2d1f4d..24bf471 100644 --- a/src/tcpdchk.c +++ b/src/tcpdchk.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2005, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. - * - * $Id: tcpdchk.c,v 1.8 2005-06-25 15:46:06 adam Exp $ */ /** * \file tcpdchk.c @@ -12,24 +10,31 @@ #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 +106,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