X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftap%2Ftap.c;h=0eaec9a5f852827d879553cfd50cd8bdf252f2c6;hp=6c454a5b976be628d55bb71abfbd169bc56e3a97;hb=69cc1b45b4921c0be738902fe0d5225f135e2aae;hpb=d92d6ae709aaed8546fbe5e9eaf2bfa46ff07d85 diff --git a/ccan/tap/tap.c b/ccan/tap/tap.c index 6c454a5b..0eaec9a5 100644 --- a/ccan/tap/tap.c +++ b/ccan/tap/tap.c @@ -23,7 +23,10 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ -#define _GNU_SOURCE +/* FIXME: The real fix is an asprintf module. */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE 1 +#endif #include #include #include @@ -67,9 +70,9 @@ _expected_tests(unsigned int tests) static void diagv(char *fmt, va_list ap) { - fputs("# ", stderr); - vfprintf(stderr, fmt, ap); - fputs("\n", stderr); + fputs("# ", stdout); + vfprintf(stdout, fmt, ap); + fputs("\n", stdout); } static void