From 137491c2b9d5e3945182d6314d30f8601879e845 Mon Sep 17 00:00:00 2001 From: jb Date: Wed, 28 Nov 2007 21:54:46 +0000 Subject: Remove _SOLARIS_C_SOURCE compatibility definitions. Unfortunately the ZFS porting style didn't extend this, instead using a heap of additional header files that don't get installed. My intention had been to allow OpenSolaris external code to build on FreeBSD out of the box (i.e. without a src tree). --- sys/sys/time.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'sys/sys/time.h') diff --git a/sys/sys/time.h b/sys/sys/time.h index 0350c20..bef7787 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -324,27 +324,4 @@ __END_DECLS #endif /* !_KERNEL */ -/* - * Solaris compatibility definitions. - */ -#ifdef _SOLARIS_C_SOURCE -/* - * Definitions for commonly used resolutions. - */ -#define SEC 1 -#define MILLISEC 1000 -#define MICROSEC 1000000 -#define NANOSEC 1000000000 - -typedef longlong_t hrtime_t; - -#ifndef _KERNEL -static __inline hrtime_t gethrtime(void) { - struct timespec ts; - clock_gettime(CLOCK_UPTIME,&ts); - return (((u_int64_t) ts.tv_sec) * NANOSEC + ts.tv_nsec); -} -#endif -#endif /* _SOLARIS_C_SOURCE */ - #endif /* !_SYS_TIME_H_ */ -- cgit v1.1