diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2015-05-22 15:25:02 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2015-05-22 20:00:49 +0000 |
commit | d58e680dfc20b4638a4d810d98c273d12eaf867e (patch) | |
tree | b3d060a7e9bc72803497de649633237a9de80efb | |
parent | 255cf09304ae3dde039c35055c00c07c0d65fd97 (diff) |
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
-rw-r--r-- | src/main/tools/process-wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <errno.h> #include <fcntl.h> |