From: Alexander Barton Date: Sun, 11 Nov 2012 10:05:21 +0000 (+0100) Subject: tool.h: Don't check for and #define PF_INET X-Git-Tag: rel-20-rc1~3 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=e29d198700a9e1c026d7f4b2601d127045adbe53 tool.h: Don't check for and #define PF_INET 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 --- diff --git a/src/tool/tool.h b/src/tool/tool.h index 9fa19e55..b05649a9 100644 --- a/src/tool/tool.h +++ b/src/tool/tool.h @@ -19,12 +19,6 @@ #include "portab.h" -#ifdef HAVE_ARPA_INET_H -# include -#else -# define PF_INET AF_INET -#endif - GLOBAL void ngt_TrimLastChr PARAMS((char *String, const char Chr )); GLOBAL void ngt_TrimStr PARAMS((char *String ));