summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2018-02-06 20:22:23 +0000
committerchristos <christos@NetBSD.org>2018-02-06 20:22:23 +0000
commit79b049af2bac2bffc10f32e3af5898750954d103 (patch)
treed3b304717e128038a932ca610f6eccde812682e7 /lib/libpthread
parent0e7790264705317c584cf617d27e8059df1de185 (diff)
fix duplicate declaration of pthread_atfork in unistd.h
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/pthread.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libpthread/pthread.h b/lib/libpthread/pthread.h
index 24f214700f5..39d72e80cd2 100644
--- a/lib/libpthread/pthread.h
+++ b/lib/libpthread/pthread.h
@@ -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);