commit: 54fbfc77095bf28e85e9d0d8bab125a7aa9c5102
parent ba108d9d984493d5b84b8d02b6bb99bab2886174
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 30 Jan 2022 16:12:57 +0100
bin/strings: Fix strtonum for NetBSD
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bin/strings.c b/bin/strings.c
@@ -7,10 +7,12 @@
 #include <errno.h>  /* errno */
 #include <fcntl.h>  /* open(), O_RDONLY */
 #include <stdio.h>  /* fprintf(), BUFSIZ */
-#include <stdlib.h> /* (BSD) strtonum() */
 #include <string.h> /* strerror(), strncmp(), memset() */
 #include <unistd.h> /* read(), write(), close(), getopt(), optarg, optind */
 
+#define _OPENBSD_SOURCE
+#include <stdlib.h> /* (BSD) strtonum() */
+
 size_t opt_min_strlen   = 4;
 char *opt_offset_format = NULL;