NOTE: we need a fallback for shm_open that will work on BSD system.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@61324
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
AC_CHECK_FUNCS([statat], [AC_DEFINE(HAVE_STATAT)], [])
AC_CHECK_FUNCS([fpathconf], [AC_DEFINE(HAVE_FPATHCONF)], [])
+AC_CHECK_FUNCS([shm_open], [AC_DEFINE(HAVE_SHMOPEN)], [])
+
### Modules
if test "x${have_default_mempool}" = "xyes" ; then
# include <pthread.h>
#endif
+#include <sys/time.h>
+
#ifdef EINA_HAVE_DEBUG_THREADS
#include <stdlib.h>
#include <string.h>
*/
if (shared)
+#ifdef HAVE_SHMOPEN
fd = shm_open(filename, O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO);
+#else
+ return NULL;
+#endif
else
fd = open(filename, O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO);