Ecore exe: check for prctl header instead of OS
authorbdilly <bdilly@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 11 Oct 2011 18:19:37 +0000 (18:19 +0000)
committerbdilly <bdilly@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 11 Oct 2011 18:19:37 +0000 (18:19 +0000)
Suggested by vtorri

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@63987 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
src/lib/ecore/ecore_exe.c

index 369749c..4719011 100644 (file)
@@ -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
 
index 239063f..94b8731 100644 (file)
@@ -14,7 +14,8 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <fcntl.h>
-#ifdef __linux__
+
+#ifdef HAVE_SYS_PRCTL_H
 # include <sys/prctl.h>
 #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);