about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 4bbb041f..6663ebf0 100644
--- a/lib/util/nstring.c
+++ b/lib/util/nstring.c
@@ -24,6 +24,7 @@
   Code in this file is contributed to the public domain by its authors.
 =============================================================================*/
 #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