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/47ff71c723a2
branches: trunk
changeset: 359308:47ff71c723a2
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 f04d448b6579 -r 47ff71c723a2 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