From c9b3a91ce2d91f92054f22131ced091d6bcf836e Mon Sep 17 00:00:00 2001 From: David Gibson Date: Mon, 15 Feb 2016 22:43:07 +1100 Subject: [PATCH] altstack: Include config.h in run.c ccan programs should always include config.h before anything else to make sure everything is set up correctly. Doing so in altstack's run.c means it no longer needs an explicit _XOPEN_SOURCE 700, since _GNU_SOURCE is set in config.h (for GNU libc, anyway). Signed-off-by: David Gibson --- ccan/altstack/test/run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccan/altstack/test/run.c b/ccan/altstack/test/run.c index de948872..389ecb91 100644 --- a/ccan/altstack/test/run.c +++ b/ccan/altstack/test/run.c @@ -1,3 +1,4 @@ +#include "config.h" #include #include #include @@ -8,7 +9,6 @@ #include #include #include -#define _XOPEN_SOURCE 700 #include enum { -- 2.39.2