#define getgid(X) static_cast<gid_t>(100)
#define setgid(X) (void)0
+/* for some reason autoconf misdetects getpagesize.. */
+#if HAVE_GETPAGESIZE
+#undef HAVE_GETPAGESIZE
+#endif
+
#if !HAVE_GETPAGESIZE
-/* Windows may lack getpagesize() prototype */
-SQUIDCEXTERN size_t getpagesize();
+/* And now we define a compatibility layer */
+size_t getpagesize();
#define HAVE_GETPAGESIZE 2
#endif
#endif
/* module globals */
-#if 1 || !HAVE_GETPAGESIZE
-static size_t getpagesize() { return 4096; }
-#endif
const size_t squidSystemPageSize=getpagesize();
/* local prototypes */
&service_list_ptr->wccp_packet,
service_list_ptr->wccp_packet_size);
} else {
- send(theWccp2Connection,
+ Squid::send(theWccp2Connection,
&service_list_ptr->wccp_packet,
service_list_ptr->wccp_packet_size,
0);