[Midnightbsd-cvs] src [10679] trunk/include/time.h: fix visibility

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Jun 9 15:49:39 EDT 2018


Revision: 10679
          http://svnweb.midnightbsd.org/src/?rev=10679
Author:   laffer1
Date:     2018-06-09 15:49:39 -0400 (Sat, 09 Jun 2018)
Log Message:
-----------
fix visibility

Modified Paths:
--------------
    trunk/include/time.h

Modified: trunk/include/time.h
===================================================================
--- trunk/include/time.h	2018-06-09 19:49:18 UTC (rev 10678)
+++ trunk/include/time.h	2018-06-09 19:49:39 UTC (rev 10679)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
 /*
  * Copyright (c) 1989, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -35,7 +36,7 @@
  */
 
 /*
- * $MidnightBSD: src/include/time.h,v 1.5 2012/10/20 17:17:25 laffer1 Exp $
+ * $FreeBSD: stable/10/include/time.h 245428 2013-01-14 18:01:19Z dim $
  */
 
 #ifndef _TIME_H_
@@ -88,6 +89,13 @@
 #include <sys/timespec.h>
 #endif /* __POSIX_VISIBLE >= 199309 */
 
+#if __POSIX_VISIBLE >= 200112
+#ifndef _PID_T_DECLARED
+typedef	__pid_t		pid_t;
+#define	_PID_T_DECLARED
+#endif
+#endif
+
 /* These macros are also in sys/time.h. */
 #if !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112
 #define CLOCK_REALTIME	0
@@ -105,7 +113,7 @@
 #define CLOCK_MONOTONIC_FAST	12	/* FreeBSD-specific. */
 #define CLOCK_SECOND	13		/* FreeBSD-specific. */
 #define CLOCK_THREAD_CPUTIME_ID	14
-#define CLOCK_PROCESS_CPUTIME_ID	15
+#define	CLOCK_PROCESS_CPUTIME_ID	15
 #endif /* !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112 */
 
 #if !defined(TIMER_ABSTIME) && __POSIX_VISIBLE >= 200112
@@ -166,6 +174,10 @@
 int nanosleep(const struct timespec *, struct timespec *);
 #endif /* __POSIX_VISIBLE >= 199309 */
 
+#if __POSIX_VISIBLE >= 200112
+int clock_getcpuclockid(pid_t, clockid_t *);
+#endif
+
 #if __POSIX_VISIBLE >= 199506
 char *asctime_r(const struct tm *, char *);
 char *ctime_r(const time_t *, char *);



More information about the Midnightbsd-cvs mailing list