minix/lib/nbsd_libc/compat/gen/compat_time.c
Gianluca Guida b6cbf7203b Import unmodified NetBSD libc in trunk
This patch imports the unmodified current version of NetBSD libc.
The NetBSD includes are in /nbsd_include, while the libc code itself is 
split between lib/nbsd_libc and common/lib/libc.
2011-02-14 19:36:03 +00:00

27 lines
589 B
C

/* $NetBSD: compat_time.c,v 1.2 2009/01/11 02:46:25 christos Exp $ */
/*
* Written by Jason R. Thorpe <thorpej@NetBSD.org>, October 21, 1997.
* Public domain.
*/
#include "namespace.h"
#include <sys/cdefs.h>
#define __LIBC12_SOURCE__
#include <time.h>
#include <sys/time.h>
#include <compat/include/time.h>
#include <compat/sys/time.h>
#ifdef __weak_alias
__weak_alias(time,_time)
#endif
__warn_references(time,
"warning: reference to compatibility time();"
" include <time.h> for correct reference")
#define timeval timeval50
#define time_t int32_t
#include "gen/time.c"