diff options
author | Mark Geisert <mark@maxrnd.com> | 2019-12-22 22:45:54 -0800 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-01-13 16:32:51 +0100 |
commit | 7b6414d459bb66affe077a062b88ca1e1e392fc4 (patch) | |
tree | e07a383dcf927e4cdf3fc9cc7bee1d15f60446e2 /winsup | |
parent | 1fdf871c9d32fdf4c4aca31be8d40bef5747eaae (diff) | |
download | newlib-7b6414d459bb66affe077a062b88ca1e1e392fc4.zip newlib-7b6414d459bb66affe077a062b88ca1e1e392fc4.tar.gz newlib-7b6414d459bb66affe077a062b88ca1e1e392fc4.tar.bz2 |
Cygwin: Add missing Linux #define of CPU_SETSIZE
Though our implementation of cpu sets doesn't need it, software from
Linux environments expects this definition to be present. It's
documented on the Linux CPU_SET(3) man page but was left out due to
oversight.
Addresses https://cygwin.com/ml/cygwin/2019-12/msg00248.html
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/include/sys/cpuset.h | 1 | ||||
-rw-r--r-- | winsup/cygwin/release/3.1.3 | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/include/sys/cpuset.h b/winsup/cygwin/include/sys/cpuset.h index 1adf48d..5725651 100644 --- a/winsup/cygwin/include/sys/cpuset.h +++ b/winsup/cygwin/include/sys/cpuset.h @@ -89,6 +89,7 @@ int __sched_getaffinity_sys (pid_t, size_t, cpu_set_t *); #define CPU_XOR(dst, src1, src2) CPU_XOR_S(sizeof (cpu_set_t), dst, src1, src2) #define CPU_EQUAL(src1, src2) CPU_EQUAL_S(sizeof (cpu_set_t), src1, src2) +#define CPU_SETSIZE __CPU_SETSIZE #endif /* __GNU_VISIBLE */ #ifdef __cplusplus diff --git a/winsup/cygwin/release/3.1.3 b/winsup/cygwin/release/3.1.3 new file mode 100644 index 0000000..d698b44 --- /dev/null +++ b/winsup/cygwin/release/3.1.3 @@ -0,0 +1,5 @@ +Bug Fixes +--------- + +- Define CPU_SETSIZE, as on Linux. + Addresses: https://cygwin.com/ml/cygwin/2019-12/msg00248.html |