Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpthread Needs to be protected since it has a timespec...



details:   https://anonhg.NetBSD.org/src/rev/efbb125a2d97
branches:  trunk
changeset: 828678:efbb125a2d97
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 26 17:00:50 2017 +0000

description:
Needs to be protected since it has a timespec argument. Found by lint(1)

diffstat:

 lib/libpthread/pthread.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r af528863a89d -r efbb125a2d97 lib/libpthread/pthread.h
--- a/lib/libpthread/pthread.h  Tue Dec 26 14:54:52 2017 +0000
+++ b/lib/libpthread/pthread.h  Tue Dec 26 17:00:50 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread.h,v 1.38 2016/10/30 23:26:33 kamil Exp $       */
+/*     $NetBSD: pthread.h,v 1.39 2017/12/26 17:00:50 christos Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -94,8 +94,10 @@
 int    pthread_mutex_lock(pthread_mutex_t *);
 int    pthread_mutex_trylock(pthread_mutex_t *);
 int    pthread_mutex_unlock(pthread_mutex_t *);
+#ifndef __LIBC12_SOURCE__
 int    pthread_mutex_timedlock(pthread_mutex_t * __restrict,
            const struct timespec * __restrict);
+#endif
 int    pthread_mutex_getprioceiling(const pthread_mutex_t * __restrict,
            int * __restrict);
 int    pthread_mutex_setprioceiling(pthread_mutex_t * __restrict, int,



Home | Main Index | Thread Index | Old Index