Module Name:    src
Committed By:   christos
Date:           Tue Feb  6 20:21:21 UTC 2018

Modified Files:
        src/include: unistd.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.147 -r1.148 src/include/unistd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/unistd.h
diff -u src/include/unistd.h:1.147 src/include/unistd.h:1.148
--- src/include/unistd.h:1.147	Thu Jun 30 11:29:20 2016
+++ src/include/unistd.h	Tue Feb  6 15:21:21 2018
@@ -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 @@ int	 fsync(int);
 #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

Reply via email to