From 73448612af4d9b3c764b31c88d0c5dc9040a6284 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Wed, 23 Dec 2009 12:01:40 +0000 Subject: [PATCH] Increase _XOPEN_SOURCE to 600. The snprintf() function conforms to C99. On FreeBSD, sys/cdefs.h instruct us that _XOPEN_SOURCE == 500 defines _POSIX_C_SOURCE as 199506 which in turn defines __ISO_C_VISIBLE as 1990. 600 is the minimal _XOPEN_SOURCE value we can use to allow us using C99 functions. Reported by: tinderbox --- src/lib/drivers/pn532_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/drivers/pn532_uart.c b/src/lib/drivers/pn532_uart.c index 86164bc..d22aae5 100644 --- a/src/lib/drivers/pn532_uart.c +++ b/src/lib/drivers/pn532_uart.c @@ -20,7 +20,7 @@ * @file pn532_uart.c * @brief */ -#define _XOPEN_SOURCE 500 +#define _XOPEN_SOURCE 600 #include #include