IPv6 support (hopefully with fewer future transition pains)
[ircu2.10.12-pk.git] / include / gline.h
index a8e39132f355e16ba93235abb761a5093693d921..50ef60862c566ef2f55a94c79cb90d790096cb85 100644 (file)
@@ -27,7 +27,9 @@
 #define INCLUDED_sys_types_h
 #endif
 
-#include <netinet/in.h>
+#ifndef INCLUDED_res_h
+#include "res.h"
+#endif
 
 struct Client;
 struct StatDesc;
@@ -42,8 +44,8 @@ struct Gline {
   char        *gl_reason;
   time_t       gl_expire;
   time_t       gl_lastmod;
-  struct in_addr ipnum;  /* We store the IP in binary for ip glines */
-  char                 bits;
+  struct irc_in_addr gl_addr;  /* We store the IP in binary for ip glines */
+  unsigned char gl_bits;
   unsigned int gl_flags;
 };