about summary refs log tree commit diff
path: root/lib/util/nstring.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/nstring.c')
-rw-r--r--lib/util/nstring.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util/nstring.c b/lib/util/nstring.c
index aff90ff3..d546ff2b 100644
--- a/lib/util/nstring.c
+++ b/lib/util/nstring.c
@@ -106,6 +106,7 @@
 
 
 #define _DEFAULT_SOURCE /* New name for SVID & BSD source defines */
+#define _C99_SOURCE  /* Make sure snprintf() is in stdio.h */
 #define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
 #define _BSD_SOURCE  /* Make sure strdup() is in string.h */
 #define _GNU_SOURCE