summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-22 10:02:18 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-22 10:02:18 -0500
commita85a55263b3eb915c2e4da3a8a38f46d19e4ee1a (patch)
treee70b338fee1016147f337065aaef6b6ce3f66b48 /cpukit
parentrtemsbuildname.c: Fix missing prototype warnings (diff)
downloadrtems-a85a55263b3eb915c2e4da3a8a38f46d19e4ee1a.tar.bz2
_execve.c: Fix missing prototype warnings
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/posix/src/_execve.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/posix/src/_execve.c b/cpukit/posix/src/_execve.c
index aa57ccb8a3..aecf838a5f 100644
--- a/cpukit/posix/src/_execve.c
+++ b/cpukit/posix/src/_execve.c
@@ -6,7 +6,7 @@
*/
/*
- * COPYRIGHT (c) 1989-2007.
+ * COPYRIGHT (c) 1989-2013.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -18,8 +18,14 @@
#include "config.h"
#endif
+/*
+ * Needed to get the prototype for this newlib helper method
+ */
+#define _COMPILING_NEWLIB
+
#include <errno.h>
#include <rtems/seterr.h>
+#include <sys/unistd.h>
int _execve(
const char *path __attribute__((unused)),