projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compilation problems when _SC_PAGE_SIZE is not defined by the OS.
[ircu2.10.12-pk.git]
/
ircd
/
test
/
ircd_match_t.c
diff --git
a/ircd/test/ircd_match_t.c
b/ircd/test/ircd_match_t.c
index 9c45495d3ac4b4aef0256c0619a5f75162ef7eac..b675cd644f0770c2ee5b19090f72362cdc0098d8 100644
(file)
--- a/
ircd/test/ircd_match_t.c
+++ b/
ircd/test/ircd_match_t.c
@@
-20,6
+20,14
@@
# 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;