aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorCedric BAIL <cedric@efl.so>2013-11-10 09:25:16 +0100
committerCedric BAIL <cedric@efl.so>2013-11-10 09:25:16 +0100
commitecaca1d365b998b3e339b387897c0646b2b3556f (patch)
tree83867cd16388a17448756507cf93ca9d4be54eac /m4
parentecore-audio - handle deletion of objects from outputs list in ctx fail cb (diff)
downloadefl-ecaca1d365b998b3e339b387897c0646b2b3556f.tar.gz
eina: detect page size in a portable way.
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_check_funcs.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/efl_check_funcs.m4 b/m4/efl_check_funcs.m4
index b976caa0e8..9edbf089c2 100644
--- a/m4/efl_check_funcs.m4
+++ b/m4/efl_check_funcs.m4
@@ -235,6 +235,20 @@ long ret = splice(0, 0, 1, 0, 400, 0);
]])
])
+dnl _EFL_CHECK_FUNC_GETPAGESIZE is for internal use
+dnl _EFL_CHECK_FUNC_GETPAGESIZE(EFL, VARIABLE)
+AC_DEFUN([_EFL_CHECK_FUNC_GETPAGESIZE],
+[EFL_FIND_LIB_FOR_CODE([$1], [], [$2], [[
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+]],
+[[
+long sz;
+sz = getpagesize();
+]])
+])
+
dnl Macro that checks function availability
dnl
dnl EFL_CHECK_FUNC(EFL, FUNCTION)