summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-27 22:57:45 -0400
committerJune McEnroe <june@causal.agency>2019-03-27 22:57:45 -0400
commitd02934bba1ffc765ceb67f3fa7cddbfebadf1a07 (patch)
tree2d450f8256b814e3a68be406c43d6638cbad8aab
parentRefactor Makefile (diff)
downloadwep-d02934bba1ffc765ceb67f3fa7cddbfebadf1a07.tar.gz
wep-d02934bba1ffc765ceb67f3fa7cddbfebadf1a07.zip
Replace feature test macro with _XOPEN_SOURCE
For some reason the former makes snprintf disappear on macOS even though
it's specified in C99???
Diffstat (limited to '')
-rw-r--r--dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index 63ebba3..f9f636f 100644
--- a/dump.c
+++ b/dump.c
@@ -14,7 +14,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#define _POSIX_C_SOURCE 2
+#define _XOPEN_SOURCE
 
 #include <err.h>
 #include <stdbool.h>