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/f04d448b6579
branches: trunk
changeset: 359307:f04d448b6579
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 e1f2fdfd9447 -r f04d448b6579 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