diff --git a/.pick_status.json b/.pick_status.json index 236bfb93113..d24b7bfc663 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -886,7 +886,7 @@ "description": "util/u_thread: include pthread_np.h if found", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": "dcf9d91a80ee76f46e162afef9bd1b2ddb53ecc3" }, diff --git a/meson.build b/meson.build index 09e2520117e..4f9c589ff3f 100644 --- a/meson.build +++ b/meson.build @@ -1211,7 +1211,7 @@ if not ['linux'].contains(host_machine.system()) endif endif -foreach h : ['xlocale.h', 'linux/futex.h', 'endian.h', 'dlfcn.h', 'execinfo.h', 'sys/shm.h', 'cet.h'] +foreach h : ['xlocale.h', 'linux/futex.h', 'endian.h', 'dlfcn.h', 'execinfo.h', 'sys/shm.h', 'cet.h', 'pthread_np.h'] if cc.check_header(h) pre_args += '-DHAVE_@0@'.format(h.to_upper().underscorify()) endif diff --git a/src/util/u_thread.h b/src/util/u_thread.h index b91d05e4cfd..af44bcfc1bd 100644 --- a/src/util/u_thread.h +++ b/src/util/u_thread.h @@ -35,7 +35,7 @@ #ifdef HAVE_PTHREAD #include -#ifdef PTHREAD_SETAFFINITY_IN_NP_HEADER +#ifdef HAVE_PTHREAD_NP_H #include #endif #endif