Module Name: src Committed By: wiz Date: Mon Aug 1 15:16:05 UTC 2022
Modified Files: src/include: sched.h Log Message: sched.h: keep __clone() visible under _NETBSD_SOURCE To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/include/sched.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/sched.h diff -u src/include/sched.h:1.14 src/include/sched.h:1.15 --- src/include/sched.h:1.14 Mon Aug 1 14:34:01 2022 +++ src/include/sched.h Mon Aug 1 15:16:05 2022 @@ -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 @@ int sched_setaffinity_np(pid_t, size_t, /* * 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