]> arthur.barton.de Git - netdata.git/blobdiff - src/apps_plugin.c
Replace OS conditional prctl.h include with file presence
[netdata.git] / src / apps_plugin.c
index 128b198561d551622f97ead759d6a3b8459e4ea2..6996b38069a52a32cbd4a672792ef887df169e1f 100644 (file)
@@ -3109,7 +3109,9 @@ int main(int argc, char **argv) {
         struct rlimit rl = { RLIM_INFINITY, RLIM_INFINITY };
         if(setrlimit(RLIMIT_CORE, &rl) != 0)
             info("Cannot request unlimited core dumps for debugging... Proceeding anyway...");
+#ifdef HAVE_SYS_PRCTL_H
         prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
+#endif
     }
 #endif /* NETDATA_INTERNAL_CHECKS */