Revision: 1945
http://undernet-ircu.svn.sourceforge.net/undernet-ircu/?rev=1945&view=rev
Author: entrope
Date: 2010-03-09 02:59:32 +0000 (Tue, 09 Mar 2010)
Log Message:
-----------
Fix compilation problems when _SC_PAGE_SIZE is not defined by the OS.
Modified Paths:
--------------
ircu2/branches/u2_10_12_branch/ChangeLog
ircu2/branches/u2_10_12_branch/ircd/test/ircd_match_t.c
Modified: ircu2/branches/u2_10_12_branch/ChangeLog
===================================================================
--- ircu2/branches/u2_10_12_branch/ChangeLog 2010-03-04 13:52:35 UTC (rev
1944)
+++ ircu2/branches/u2_10_12_branch/ChangeLog 2010-03-09 02:59:32 UTC (rev
1945)
@@ -1,3 +1,8 @@
+2010-03-08 Michael Poole <[email protected]>
+
+ * 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 <[email protected]>
* ircd/s_bsd.c: use feature_int() to get the integer value of the
Modified: ircu2/branches/u2_10_12_branch/ircd/test/ircd_match_t.c
===================================================================
--- ircu2/branches/u2_10_12_branch/ircd/test/ircd_match_t.c 2010-03-04
13:52:35 UTC (rev 1944)
+++ ircu2/branches/u2_10_12_branch/ircd/test/ircd_match_t.c 2010-03-09
02:59:32 UTC (rev 1945)
@@ -20,6 +20,14 @@
# 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;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches