pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / x11 / mesa / patches / patch-src_gallium_drivers_freedreno_freedreno__util.h.patch
blob11283117baa2745231a3e9d1a46fa170525896b0
1 $NetBSD: patch-src_gallium_drivers_freedreno_freedreno__util.h,v 1.1 2022/03/13 15:52:50 tnn Exp $
3 gettid() is linux-specific
5 --- src/gallium/drivers/freedreno/freedreno_util.h.orig 2022-01-12 21:32:28.000000000 +0000
6 +++ src/gallium/drivers/freedreno/freedreno_util.h
7 @@ -108,6 +108,7 @@ extern bool fd_binning_enabled;
8 #include <sys/types.h>
9 #include <sys/syscall.h>
11 +#if defined(__linux__)
12 #define DBG(fmt, ...) \
13 do { \
14 if (FD_DBG(MSGS)) \
15 @@ -115,6 +116,16 @@ extern bool fd_binning_enabled;
16 __FUNCTION__, __LINE__, \
17 ##__VA_ARGS__); \
18 } while (0)
19 +#else
20 +#define DBG(fmt, ...) \
21 + do { \
22 + if (FD_DBG(MSGS)) \
23 + mesa_logi("%s:%d: " fmt, \
24 + __FUNCTION__, __LINE__, \
25 + ##__VA_ARGS__); \
26 + } while (0)
27 +#endif
30 #define perf_debug_message(debug, type, ...) \
31 do { \