X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftcpdchk.c;h=24bf471c3d0c1e37b1c469cc6dd450bc739ef551;hb=3e6398d15008d68aa36b0b985a18f142fcfa9a8f;hp=98bdc2b0ec0273582b2a50414cc35305dc53ba23;hpb=b3b89ab95e626286ad2fe9ccf5b589f153e5aa37;p=yaz-moved-to-github.git diff --git a/src/tcpdchk.c b/src/tcpdchk.c index 98bdc2b..24bf471 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. */ /** @@ -22,6 +22,15 @@ #include #endif +#if HAVE_ARPA_INET_H +#include +#endif + +#if HAVE_SYS_SOCKET_H +/* freebsd wants this for AF_INET */ +#include +#endif + #if HAVE_NETDB_H #include #endif @@ -97,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