pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / x11 / mesa / patches / patch-src_gallium_drivers_nouveau_nouveau__vp3__video.c.patch
blob7b310b3922d303f3056fe92417ef92233581877f
1 $NetBSD: patch-src_gallium_drivers_nouveau_nouveau__vp3__video.c,v 1.2 2019/08/21 13:35:28 nia Exp $
3 Fix build on platforms without close-on-exec.
5 --- src/gallium/drivers/nouveau/nouveau_vp3_video.c.orig 2017-02-13 11:55:49.000000000 +0000
6 +++ src/gallium/drivers/nouveau/nouveau_vp3_video.c
7 @@ -294,7 +294,11 @@ nouveau_vp3_load_firmware(struct nouveau
8 if (nouveau_bo_map(dec->fw_bo, NOUVEAU_BO_WR, dec->client))
9 return 1;
11 +#ifdef O_CLOEXEC
12 fd = open(path, O_RDONLY | O_CLOEXEC);
13 +#else
14 + fd = open(path, O_RDONLY);
15 +#endif
16 if (fd < 0) {
17 fprintf(stderr, "opening firmware file %s failed: %m\n", path);
18 return 1;