Fix compilation problems when _SC_PAGE_SIZE is not defined by the OS.
authorMichael Poole <mdpoole@troilus.org>
Tue, 9 Mar 2010 02:59:32 +0000 (02:59 +0000)
committerMichael Poole <mdpoole@troilus.org>
Tue, 9 Mar 2010 02:59:32 +0000 (02:59 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1945 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/test/ircd_match_t.c

index 9c9177b612e25e4b5600cb41647dbb8361d4ab6b..ac780e3f8ceb85f9423f3d1cbeca6fa12fc727f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-08  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/test/ircd_match_t.c (_SC_PAGE_SIZE): Default to
+       _SC_PAGESIZE if that is defined (as it is on some Unixes).
+
 2010-03-04  Kevin L. Mitchell  <klmitch@mit.edu>
 
        * ircd/s_bsd.c: use feature_int() to get the integer value of the
 2010-03-04  Kevin L. Mitchell  <klmitch@mit.edu>
 
        * ircd/s_bsd.c: use feature_int() to get the integer value of the
index 9c45495d3ac4b4aef0256c0619a5f75162ef7eac..b675cd644f0770c2ee5b19090f72362cdc0098d8 100644 (file)
 # endif
 #endif
 
 # 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;
 struct match_test {
   const char *glob;
   const char *should_match;