gallium,util: undef ALIGN on FreeBSD to prevent name clash

Some rare headers like ipc/shm and pthread_np cause
machine/param.h to be included which defines a macro called ALIGN.

Signed-off-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3559>
This commit is contained in:
Greg V
2020-04-23 16:15:38 +03:00
committed by Marge Bot
parent f678811b56
commit 29e2a3b8f5
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -45,6 +45,10 @@
#endif
#ifdef __FreeBSD__
/* pthread_np.h -> sys/param.h -> machine/param.h
* - defines ALIGN which clashes with our ALIGN
*/
#undef ALIGN
#define cpu_set_t cpuset_t
#endif