2013-12-06 12:04:52 +01:00
|
|
|
/* $NetBSD: compat_time.c,v 1.4 2013/10/04 21:07:37 christos Exp $ */
|
2011-02-14 20:36:03 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|
2013-12-06 12:04:52 +01:00
|
|
|
|
|
|
|
#define gettimeofday __compat_gettimeofday
|
|
|
|
|
2011-02-14 20:36:03 +01:00
|
|
|
#include "gen/time.c"
|