diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bits/types/struct_timeb.h | 1 | ||||
-rw-r--r-- | include/struct___timeb64.h | 16 | ||||
-rw-r--r-- | include/sys/timeb.h | 12 |
3 files changed, 29 insertions, 0 deletions
diff --git a/include/bits/types/struct_timeb.h b/include/bits/types/struct_timeb.h new file mode 100644 index 0000000000..fef74d2f44 --- /dev/null +++ b/include/bits/types/struct_timeb.h @@ -0,0 +1 @@ +#include <time/bits/types/struct_timeb.h> diff --git a/include/struct___timeb64.h b/include/struct___timeb64.h new file mode 100644 index 0000000000..14704a9e30 --- /dev/null +++ b/include/struct___timeb64.h @@ -0,0 +1,16 @@ +#ifndef _STRUCT_TIMEB64_H +#define _STRUCT_TIMEB64_H + +#if __TIMESIZE == 64 +# define __timeb64 timeb +#else +struct __timeb64 +{ + __time64_t time; + unsigned short int millitm; + short int timezone; + short int dstflag; +}; +#endif + +#endif /* _STRUCT_TIMEB64_H */ diff --git a/include/sys/timeb.h b/include/sys/timeb.h index 9f4509c35e..2b01dafea7 100644 --- a/include/sys/timeb.h +++ b/include/sys/timeb.h @@ -1 +1,13 @@ #include <time/sys/timeb.h> + +#ifndef _ISOMAC +# if __TIMESIZE == 64 +# define __timeb64 timeb +# define __ftime64 ftime +# else +# include <struct___timeb64.h> + +extern int __ftime64 (struct __timeb64 *) __nonnull ((1)); +libc_hidden_proto (__ftime64); +# endif +#endif |