From 5d987d61cf5ecb99efe25d8547b7631dfe96d7de Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Fri, 14 May 2010 22:01:07 +0000 Subject: Move include/sys along with libc/, so hosted (sim/RaaA) builds use the proper files for their OS git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26030 a1c6a512-1295-4272-9138-f99709370657 --- firmware/libc/include/sys/timeb.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 firmware/libc/include/sys/timeb.h (limited to 'firmware/libc/include/sys/timeb.h') diff --git a/firmware/libc/include/sys/timeb.h b/firmware/libc/include/sys/timeb.h new file mode 100644 index 0000000..4e97ec8 --- /dev/null +++ b/firmware/libc/include/sys/timeb.h @@ -0,0 +1,38 @@ +/* timeb.h -- An implementation of the standard Unix file. + Written by Ian Lance Taylor + Public domain; no rights reserved. + + declares the structure used by the ftime function, as + well as the ftime function itself. Newlib does not provide an + implementation of ftime. */ + +#ifndef _SYS_TIMEB_H + +#ifdef __cplusplus +extern "C" { +#endif + +#define _SYS_TIMEB_H + +#include <_ansi.h> + +#ifndef __time_t_defined +typedef _TIME_T_ time_t; +#define __time_t_defined +#endif + +struct timeb +{ + time_t time; + unsigned short millitm; + short timezone; + short dstflag; +}; + +extern int ftime _PARAMS ((struct timeb *)); + +#ifdef __cplusplus +} +#endif + +#endif /* ! defined (_SYS_TIMEB_H) */ -- cgit v1.1