Source-Changes-HG archive

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

[src/trunk]: src/include detect duplicate declaration of pthread_atfork() in ...



details:   https://anonhg.NetBSD.org/src/rev/7193fedc88a0
branches:  trunk
changeset: 829608:7193fedc88a0
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 06 20:21:21 2018 +0000

description:
detect duplicate declaration of pthread_atfork() in pthread.h

diffstat:

 include/unistd.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r b276b4a6eba4 -r 7193fedc88a0 include/unistd.h
--- a/include/unistd.h  Tue Feb 06 20:15:39 2018 +0000
+++ b/include/unistd.h  Tue Feb 06 20:21:21 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: unistd.h,v 1.147 2016/06/30 15:29:20 dholland Exp $    */
+/*     $NetBSD: unistd.h,v 1.148 2018/02/06 20:21:21 christos Exp $    */
 
 /*-
  * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
@@ -213,8 +213,11 @@
 #if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \
     defined(_REENTRANT) || defined(_NETBSD_SOURCE)
 int     ttyname_r(int, char *, size_t);
+#ifndef __PTHREAD_AFORK_DECLARED
+#define __PTHREAD_AFORK_DECLARED
 int     pthread_atfork(void (*)(void), void (*)(void), void (*)(void));
 #endif
+#endif
 
 /*
  * X/Open Portability Guide, all issues



Home | Main Index | Thread Index | Old Index