]> arthur.barton.de Git - ngircd-alex.git/commitdiff
tool.h: Don't check for and #define PF_INET
authorAlexander Barton <alex@barton.de>
Sun, 11 Nov 2012 10:05:21 +0000 (11:05 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 11 Nov 2012 10:05:21 +0000 (11:05 +0100)
This is correctly handled by ipaddr/ng_ipaddr.h today, and the check
in tool.h isn't required any more -- and caused errors on OpenBSD 5.0:

  In file included from ./../tool/tool.h:23:
  /usr/include/arpa/inet.h:74:
    warning: "struct in_addr" declared inside parameter list

src/tool/tool.h

index 9fa19e55ba987a31c70e187128e5cbc8b896c790..b05649a9df8f0bc2e47542e9289704dacf90a7d2 100644 (file)
 
 #include "portab.h"
 
-#ifdef HAVE_ARPA_INET_H
-# include <arpa/inet.h>
-#else
-# define PF_INET AF_INET
-#endif
-
 GLOBAL void ngt_TrimLastChr PARAMS((char *String, const char Chr ));
 
 GLOBAL void ngt_TrimStr PARAMS((char *String ));