This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RTEMS utime.h is broken


Hello,

according to

http://pubs.opengroup.org/onlinepubs/009604599/functions/utime.html

#include <utime.h>

should work without preceding includes. The RTEMS utime.h lacks an include of <sys/types.h>.

--
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
2012-02-01  Sebastian Huber <sebastian.huber@embedded-brains.de>

	* libc/sys/rtems/sys/utime.h: Include <sys/types.h> to provide a
	definition of time_h.

Index: ./libc/sys/rtems/sys/utime.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/rtems/sys/utime.h,v
retrieving revision 1.1
diff -u -r1.1 utime.h
--- ./libc/sys/rtems/sys/utime.h	7 Nov 2002 19:27:36 -0000	1.1
+++ ./libc/sys/rtems/sys/utime.h	1 Feb 2012 15:07:47 -0000
@@ -5,6 +5,8 @@
 #ifndef __UTIME_h__
 #define __UTIME_h__
 
+#include <sys/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]