From: David Gibson Date: Mon, 15 Feb 2016 11:43:07 +0000 (+1100) Subject: altstack: Include config.h in run.c X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=c9b3a91ce2d91f92054f22131ced091d6bcf836e 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 --- 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 {