[rtems commit] _execve.c: Fix missing prototype warnings

Joel Sherrill joel at rtems.org
Sun Sep 22 15:32:20 UTC 2013


Module:    rtems
Branch:    master
Commit:    a85a55263b3eb915c2e4da3a8a38f46d19e4ee1a
Changeset: http://git.rtems.org/rtems/commit/?id=a85a55263b3eb915c2e4da3a8a38f46d19e4ee1a

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sun Sep 22 10:02:18 2013 -0500

_execve.c: Fix missing prototype warnings

---

 cpukit/posix/src/_execve.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/cpukit/posix/src/_execve.c b/cpukit/posix/src/_execve.c
index aa57ccb..aecf838 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)),




More information about the vc mailing list