Module Name: src
Committed By: christos
Date: Tue Feb 6 20:22:23 UTC 2018
Modified Files:
src/lib/libpthread: pthread.h
Log Message:
fix duplicate declaration of pthread_atfork in unistd.h
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/lib/libpthread/pthread.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libpthread/pthread.h
diff -u src/lib/libpthread/pthread.h:1.39 src/lib/libpthread/pthread.h:1.40
--- src/lib/libpthread/pthread.h:1.39 Tue Dec 26 12:00:50 2017
+++ src/lib/libpthread/pthread.h Tue Feb 6 15:22:23 2018
@@ -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);