change log for rtems (2011-12-13)

rtems-vc at rtems.org rtems-vc at rtems.org
Tue Dec 13 06:52:25 UTC 2011


 *ralf*:
2011-12-13	Ralf Corsépius <ralf.corsepius at rtems.org>

	* configure.ac: Check for getrusage.h decl.
	* libcsupport/src/getrusage.c:
	Apply HAVE_DECL_GETRUSAGE (Missing prototypes).

M 1.3087  cpukit/ChangeLog
M  1.209  cpukit/configure.ac
M    1.3  cpukit/libcsupport/src/getrusage.c

diff -u rtems/cpukit/ChangeLog:1.3086 rtems/cpukit/ChangeLog:1.3087
--- rtems/cpukit/ChangeLog:1.3086	Mon Dec 12 09:17:32 2011
+++ rtems/cpukit/ChangeLog	Tue Dec 13 00:47:21 2011
@@ -1,3 +1,9 @@
+2011-12-13	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	* configure.ac: Check for getrusage.h decl.
+	* libcsupport/src/getrusage.c: 
+	Apply HAVE_DECL_GETRUSAGE (Missing prototypes).
+
 2011-12-12	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
 	* score/src/wkstringduplicate.c: New file.

diff -u rtems/cpukit/configure.ac:1.208 rtems/cpukit/configure.ac:1.209
--- rtems/cpukit/configure.ac:1.208	Tue Dec  6 02:15:32 2011
+++ rtems/cpukit/configure.ac	Tue Dec 13 00:47:21 2011
@@ -98,6 +98,9 @@
 RTEMS_CHECK_FUNC([pthread_attr_setstack],[#include <pthread.h>])
 RTEMS_CHECK_FUNC([pthread_attr_getstack],[#include <pthread.h>])
 
+# Mandated by POSIX, not declared in some versions of newlib.
+AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
+
 # Newlib's unix/ directory
 AC_CHECK_FUNCS([ttyname getcwd])
 # </FIXME>

diff -u rtems/cpukit/libcsupport/src/getrusage.c:1.2 rtems/cpukit/libcsupport/src/getrusage.c:1.3
--- rtems/cpukit/libcsupport/src/getrusage.c:1.2	Mon Jul  5 20:15:44 2010
+++ rtems/cpukit/libcsupport/src/getrusage.c	Tue Dec 13 00:47:21 2011
@@ -19,6 +19,10 @@
 #include <rtems.h>
 #include <rtems/seterr.h>
 
+#if !HAVE_DECL_GETRUSAGE
+extern int getrusage(int who, struct rusage *usage);
+#endif
+
 int getrusage(int who, struct rusage *usage)
 {
   struct timespec uptime;



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111213/587e5faa/attachment.html>


More information about the vc mailing list