xref: /netbsd-src/lib/libc/compat/gen/compat_time.c (revision b1c86f5f087524e68db12794ee9c3e3da1ab17a0)
1 /*	$NetBSD: compat_time.c,v 1.2 2009/01/11 02:46:25 christos Exp $	*/
2 
3 /*
4  * Written by Jason R. Thorpe <thorpej@NetBSD.org>, October 21, 1997.
5  * Public domain.
6  */
7 
8 #include "namespace.h"
9 #include <sys/cdefs.h>
10 
11 #define __LIBC12_SOURCE__
12 #include <time.h>
13 #include <sys/time.h>
14 #include <compat/include/time.h>
15 #include <compat/sys/time.h>
16 
17 #ifdef __weak_alias
18 __weak_alias(time,_time)
19 #endif
20 
21 __warn_references(time,
22     "warning: reference to compatibility time();"
23     " include <time.h> for correct reference")
24 
25 #define timeval timeval50
26 #define time_t int32_t
27 #include "gen/time.c"
28