From d58e680dfc20b4638a4d810d98c273d12eaf867e Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Fri, 22 May 2015 15:25:02 +0000 Subject: process-wrapper: only define _GNU_SOURCE if it wasn't defined yet, eg. on the command line. -- Change-Id: I888dbe55d0e89de581a7180a3b85775e85e1e476 Reviewed-on: https://bazel-review.googlesource.com/#/c/1361 MOS_MIGRATED_REVID=94279633 --- src/main/tools/process-wrapper.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/tools/process-wrapper.c') diff --git a/src/main/tools/process-wrapper.c b/src/main/tools/process-wrapper.c index 7935555cbd..27601bf212 100644 --- a/src/main/tools/process-wrapper.c +++ b/src/main/tools/process-wrapper.c @@ -22,7 +22,9 @@ // die with raise(SIGTERM) even if the child process handles SIGTERM with // exit(0). +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include #include -- cgit v1.2.3