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

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


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

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

__times.c: Fix missing prototype warnings

---

 cpukit/libcsupport/src/__times.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/cpukit/libcsupport/src/__times.c b/cpukit/libcsupport/src/__times.c
index 13e2605..d8076d8 100644
--- a/cpukit/libcsupport/src/__times.c
+++ b/cpukit/libcsupport/src/__times.c
@@ -6,7 +6,7 @@
  */
 
 /*
- *  COPYRIGHT (c) 1989-2010.
+ *  COPYRIGHT (c) 1989-2013.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -18,6 +18,11 @@
 #include "config.h"
 #endif
 
+/*
+ *  Needed to get the prototype for this newlib helper method
+ */
+#define _COMPILING_NEWLIB
+
 #include <rtems.h>
 
 #include <sys/times.h>




More information about the vc mailing list