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
This commit is contained in:
Mark Geisert 2019-12-22 22:45:54 -08:00 committed by Corinna Vinschen
parent 1fdf871c9d
commit 7b6414d459
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,5 @@
Bug Fixes
---------
- Define CPU_SETSIZE, as on Linux.
Addresses: https://cygwin.com/ml/cygwin/2019-12/msg00248.html