From: Michael Poole Date: Tue, 9 Mar 2010 02:59:32 +0000 (+0000) Subject: Fix compilation problems when _SC_PAGE_SIZE is not defined by the OS. X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=18f0d7529de0b14fb8118fd5ecc2f275ffe515e8 Fix compilation problems when _SC_PAGE_SIZE is not defined by the OS. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1945 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index 9c9177b..ac780e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-03-08 Michael Poole + + * 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 * ircd/s_bsd.c: use feature_int() to get the integer value of the diff --git a/ircd/test/ircd_match_t.c b/ircd/test/ircd_match_t.c index 9c45495..b675cd6 100644 --- a/ircd/test/ircd_match_t.c +++ b/ircd/test/ircd_match_t.c @@ -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;