Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include sched.h: keep __clone() visible under _NETBSD_SOURCE



details:   https://anonhg.NetBSD.org/src/rev/5d4d0ad69ae1
branches:  trunk
changeset: 368753:5d4d0ad69ae1
user:      wiz <wiz%NetBSD.org@localhost>
date:      Mon Aug 01 15:16:05 2022 +0000

description:
sched.h: keep __clone() visible under _NETBSD_SOURCE

diffstat:

 include/sched.h |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 81e60b766f2e -r 5d4d0ad69ae1 include/sched.h
--- a/include/sched.h   Mon Aug 01 14:44:15 2022 +0000
+++ b/include/sched.h   Mon Aug 01 15:16:05 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sched.h,v 1.14 2022/08/01 14:34:01 wiz Exp $   */
+/*     $NetBSD: sched.h,v 1.15 2022/08/01 15:16:05 wiz Exp $   */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -73,13 +73,17 @@
 
 /*
  * Historical functions, not defined in standard
- * Linux man page documents these functions as only available when
+ * Linux man page documents clone() as only available when
  * _GNU_SOURCE is defined
  */
 pid_t   clone(int (*)(void *), void *, int, void *);
+#endif /* _GNU_SOURCE */
+
+#if defined(_NETBSD_SOURCE)
+
 pid_t  __clone(int (*)(void *), void *, int, void *);
 
-#endif /* _GNU_SOURCE */
+#endif /* _NETBSD_SOURCE */
 
 __END_DECLS
 



Home | Main Index | Thread Index | Old Index