pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / x11 / mesa / patches / patch-src_gallium_drivers_nouveau_nv50_nv84__video.c.patch
blobae714d147067da0b7dc98424eafdd37c5e6242f0
1 $NetBSD: patch-src_gallium_drivers_nouveau_nv50_nv84__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/nv50/nv84_video.c.orig 2015-03-21 00:51:18.000000000 +0000
6 +++ src/gallium/drivers/nouveau/nv50/nv84_video.c
7 @@ -34,7 +34,11 @@
8 static int
9 nv84_copy_firmware(const char *path, void *dest, ssize_t len)
11 +#ifdef O_CLOEXEC
12 int fd = open(path, O_RDONLY | O_CLOEXEC);
13 +#else
14 + int fd = open(path, O_RDONLY);
15 +#endif
16 ssize_t r;
17 if (fd < 0) {
18 fprintf(stderr, "opening firmware file %s failed: %m\n", path);