[PATCH 2/5] cpukit/posix/src/_execve.c: fix warning
Matthew Joyce
matthew.joyce at embedded-brains.de
Wed Jun 8 13:34:50 UTC 2022
From: Matt Joyce <matthew.joyce at embedded-brains.de>
Define _LIBC to access prototype for _execve() function. This fixes a
new warning in gcc 12.
---
cpukit/posix/src/_execve.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cpukit/posix/src/_execve.c b/cpukit/posix/src/_execve.c
index 2858d13082..29c4fe8fcf 100644
--- a/cpukit/posix/src/_execve.c
+++ b/cpukit/posix/src/_execve.c
@@ -47,6 +47,11 @@
*/
#define _COMPILING_NEWLIB
+/*
+ * Needed to get the prototype for _execve()
+ */
+#define _LIBC
+
#include <errno.h>
#include <rtems/seterr.h>
#include <sys/unistd.h>
--
2.31.1
More information about the devel
mailing list