From 4e9f22160b0d435b269b38eee260e493a09ec2ef Mon Sep 17 00:00:00 2001 From: bdilly Date: Tue, 11 Oct 2011 18:19:37 +0000 Subject: [PATCH] Ecore exe: check for prctl header instead of OS Suggested by vtorri git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@63987 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- configure.ac | 2 +- src/lib/ecore/ecore_exe.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 369749c..4719011 100644 --- a/configure.ac +++ b/configure.ac @@ -1116,7 +1116,7 @@ PKG_CHECK_MODULES([EVAS], [evas >= 1.0.0], ### Checks for header files -AC_CHECK_HEADERS([sys/select.h]) +AC_CHECK_HEADERS([sys/select.h sys/prctl.h]) EFL_CHECK_PATH_MAX diff --git a/src/lib/ecore/ecore_exe.c b/src/lib/ecore/ecore_exe.c index 239063f..94b8731 100644 --- a/src/lib/ecore/ecore_exe.c +++ b/src/lib/ecore/ecore_exe.c @@ -14,7 +14,8 @@ #include #include #include -#ifdef __linux__ + +#ifdef HAVE_SYS_PRCTL_H # include #endif @@ -1512,7 +1513,7 @@ _ecore_exe_exec_it(const char *exe_cmd, Ecore_Exe_Flags flags) } } -#ifdef __linux__ +#ifdef HAVE_SYS_PRCTL_H if ((flags & ECORE_EXE_TERM_WITH_PARENT)) { prctl(PR_SET_PDEATHSIG, SIGTERM); -- 2.7.4