84d9c625bf
- Fix for possible unset uid/gid in toproto - Fix for default mtree style - Update libelf - Importing libexecinfo - Resynchronize GCC, mpc, gmp, mpfr - build.sh: Replace params with show-params. This has been done as the make target has been renamed in the same way, while a new target named params has been added. This new target generates a file containing all the parameters, instead of printing it on the console. - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org) get getservbyport() out of the inner loop Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
30 lines
634 B
C
30 lines
634 B
C
/* $NetBSD: compat_time.c,v 1.4 2013/10/04 21:07:37 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
|
|
|
|
#define gettimeofday __compat_gettimeofday
|
|
|
|
#include "gen/time.c"
|