Source-Changes-HG archive

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

[src/trunk]: src/lib/libpthread fix duplicate declaration of pthread_atfork i...



details:   https://anonhg.NetBSD.org/src/rev/ad176f6782c1
branches:  trunk
changeset: 829609:ad176f6782c1
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 06 20:22:23 2018 +0000

description:
fix duplicate declaration of pthread_atfork in unistd.h

diffstat:

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

diffs (20 lines):

diff -r 7193fedc88a0 -r ad176f6782c1 lib/libpthread/pthread.h
--- a/lib/libpthread/pthread.h  Tue Feb 06 20:21:21 2018 +0000
+++ b/lib/libpthread/pthread.h  Tue Feb 06 20:22:23 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread.h,v 1.39 2017/12/26 17:00:50 christos Exp $    */
+/*     $NetBSD: pthread.h,v 1.40 2018/02/06 20:22:23 christos Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -41,7 +41,10 @@
 #include <pthread_types.h>
 
 __BEGIN_DECLS
+#ifndef __PTHREAD_ATFORK_DECLARED
+#define __PTHREAD_ATFORK_DECLARED
 int    pthread_atfork(void (*)(void), void (*)(void), void (*)(void));
+#endif
 int    pthread_create(pthread_t * __restrict,
            const pthread_attr_t * __restrict, void *(*)(void *),
            void * __restrict);



Home | Main Index | Thread Index | Old Index