diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-05-28 16:00:19 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-05-28 16:00:19 -0300 |
commit | 271ec55d0ae795f03d92e3aa61bff69a31a19e3a (patch) | |
tree | 5fff25b9948b6adade4ce100751d10deef723aed /support/xthread.h | |
parent | 2c44452b6180bffd694575f9fc1c01e671e498b5 (diff) | |
download | glibc-271ec55d0ae795f03d92e3aa61bff69a31a19e3a.tar glibc-271ec55d0ae795f03d92e3aa61bff69a31a19e3a.tar.gz glibc-271ec55d0ae795f03d92e3aa61bff69a31a19e3a.tar.bz2 glibc-271ec55d0ae795f03d92e3aa61bff69a31a19e3a.zip |
support: Do not build xpthread_attr_setaffinity_np for hurd
It does not provide pthread_attr_setaffinity_np extension.
Diffstat (limited to 'support/xthread.h')
-rw-r--r-- | support/xthread.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/support/xthread.h b/support/xthread.h index c0dbb6086e..a4a4ec5b1e 100644 --- a/support/xthread.h +++ b/support/xthread.h @@ -66,9 +66,11 @@ void *xpthread_join (pthread_t thr); void xpthread_once (pthread_once_t *guard, void (*func) (void)); void xpthread_attr_destroy (pthread_attr_t *attr); void xpthread_attr_init (pthread_attr_t *attr); +#ifdef __linux__ void xpthread_attr_setaffinity_np (pthread_attr_t *attr, size_t cpusetsize, const cpu_set_t *cpuset); +#endif void xpthread_attr_setdetachstate (pthread_attr_t *attr, int detachstate); void xpthread_attr_setstack (pthread_attr_t *attr, void *stackaddr, |