Alexander Barton : tool.h: Don't check for and #define PF_INET
Module: ngircd.git Branch: master Commit: e29d198700a9e1c026d7f4b2601d127045adbe53 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=e29d19870... Author: Alexander Barton <alex@barton.de> Date: Sun Nov 11 11:05:21 2012 +0100 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 --- src/tool/tool.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/tool/tool.h b/src/tool/tool.h index 9fa19e5..b05649a 100644 --- a/src/tool/tool.h +++ b/src/tool/tool.h @@ -19,12 +19,6 @@ #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 ));
Teilnehmer (1)
-
alex@arthur.barton.de