From: Bruno Dilly Date: Tue, 11 Oct 2011 18:19:37 +0000 (+0000) Subject: Ecore exe: check for prctl header instead of OS X-Git-Tag: submit/devel/efl/20131022.203902~7873 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=220e9e7a663d975aad8c599cabcb2c380a03ed9a;p=platform%2Fupstream%2Fefl.git Ecore exe: check for prctl header instead of OS Suggested by vtorri SVN revision: 63987 --- diff --git a/legacy/ecore/configure.ac b/legacy/ecore/configure.ac index 369749c..4719011 100644 --- a/legacy/ecore/configure.ac +++ b/legacy/ecore/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/legacy/ecore/src/lib/ecore/ecore_exe.c b/legacy/ecore/src/lib/ecore/ecore_exe.c index 239063f..94b8731 100644 --- a/legacy/ecore/src/lib/ecore/ecore_exe.c +++ b/legacy/ecore/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);