summaryrefslogtreecommitdiffstats
path: root/sys/sys/time.h
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>2007-11-28 21:54:46 +0000
committerjb <jb@FreeBSD.org>2007-11-28 21:54:46 +0000
commit137491c2b9d5e3945182d6314d30f8601879e845 (patch)
tree9a2114e6bec545e74a3d60db07e0217ab1f1d966 /sys/sys/time.h
parent4b02e2256720836fa381d03ba18850645cc62d4b (diff)
downloadFreeBSD-src-137491c2b9d5e3945182d6314d30f8601879e845.zip
FreeBSD-src-137491c2b9d5e3945182d6314d30f8601879e845.tar.gz
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).
Diffstat (limited to 'sys/sys/time.h')
-rw-r--r--sys/sys/time.h23
1 files changed, 0 insertions, 23 deletions
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_ */
OpenPOWER on IntegriCloud