Fix compilation problems when _SC_PAGE_SIZE is not defined by the OS.
[ircu2.10.12-pk.git] / ircd / test / ircd_match_t.c
index 9c45495d3ac4b4aef0256c0619a5f75162ef7eac..b675cd644f0770c2ee5b19090f72362cdc0098d8 100644 (file)
 # endif
 #endif
 
+#if !defined(_SC_PAGE_SIZE)
+# if defined(_SC_PAGESIZE)
+#  define _SC_PAGE_SIZE _SC_PAGESIZE
+# else
+#  error I do not know how to request the page size from your OS.
+# endif
+#endif
+
 struct match_test {
   const char *glob;
   const char *should_match;