minix/lib/libc/compat/gen/compat_time.c

28 lines
589 B
C
Raw Normal View History

/* $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"