summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/forkfd_qt.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-03-13 23:49:28 -0700
committerThiago Macieira <thiago.macieira@intel.com>2015-07-18 02:25:23 +0000
commit53ee7444d84af9fe701540830dfa7966dee153ea (patch)
treeb8924cd0a80b3daa4810ec797afc0409ceb65fe9 /src/corelib/io/forkfd_qt.cpp
parent10c529b08de7cd55b4c3e3654464119246498273 (diff)
forkfd: use wait4 to get the process status instead of waitid
wait4 gives us the struct rusage contents for us, which may contain interesting data for other users of forkfd (not Qt, though). Change-Id: Iee8cbc07c4434ce9b560ffff13cb4aa28e18e790 Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/corelib/io/forkfd_qt.cpp')
-rw-r--r--src/corelib/io/forkfd_qt.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/corelib/io/forkfd_qt.cpp b/src/corelib/io/forkfd_qt.cpp
index 6704ec6f2a..b226332cc1 100644
--- a/src/corelib/io/forkfd_qt.cpp
+++ b/src/corelib/io/forkfd_qt.cpp
@@ -32,13 +32,6 @@
****************************************************************************/
// these might be defined via precompiled headers
-#ifndef _POSIX_C_SOURCE
-# define _POSIX_C_SOURCE 200809L
-#endif
-#if !defined(_XOPEN_SOURCE) && !defined(__QNXNTO__) && !defined(ANDROID)
-# define _XOPEN_SOURCE 700
-#endif
-
#include <QtCore/qatomic.h>
#include "qprocess_p.h"