[PATCH 1/3] rtems-bin2c.c: Define _GNU_SOURCE for strnlen()

Joel Sherrill joel at rtems.org
Tue Mar 30 21:16:13 UTC 2021


---
 misc/bin2c/rtems-bin2c.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/misc/bin2c/rtems-bin2c.c b/misc/bin2c/rtems-bin2c.c
index 7ed79dd..397f2ad 100644
--- a/misc/bin2c/rtems-bin2c.c
+++ b/misc/bin2c/rtems-bin2c.c
@@ -25,6 +25,7 @@
  *
  */
 
+#define _GNU_SOURCE // for strnlen
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
-- 
1.8.3.1



More information about the devel mailing list