[rtems-tools commit] rtems-bin2c.c: Add _GNU_SOURCE to see strnlen() and strdup()
Joel Sherrill
joel at rtems.org
Thu Dec 16 21:26:47 UTC 2021
Module: rtems-tools
Branch: 5
Commit: 161ccd0177ef13bce3a211f8df496bb49d052000
Changeset: http://git.rtems.org/rtems-tools/commit/?id=161ccd0177ef13bce3a211f8df496bb49d052000
Author: Joel Sherrill <joel at rtems.org>
Date: Thu Dec 16 15:23:16 2021 -0600
rtems-bin2c.c: Add _GNU_SOURCE to see strnlen() and strdup()
Addresses warnings.
---
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..fcf6d2a 100644
--- a/misc/bin2c/rtems-bin2c.c
+++ b/misc/bin2c/rtems-bin2c.c
@@ -25,6 +25,7 @@
*
*/
+#define _GNU_SOURCE
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
More information about the vc
mailing list