mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
mesa: patch to fix w/musl
This commit is contained in:
parent
2974ed9266
commit
1289cdaf75
@ -92,7 +92,7 @@ stdenv.mkDerivation {
|
|||||||
patches = [
|
patches = [
|
||||||
./glx_ro_text_segm.patch # fix for grsecurity/PaX
|
./glx_ro_text_segm.patch # fix for grsecurity/PaX
|
||||||
./symlink-drivers.patch
|
./symlink-drivers.patch
|
||||||
];
|
] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./musl-fixes.patch;
|
||||||
|
|
||||||
outputs = [ "out" "dev" "drivers" "osmesa" ];
|
outputs = [ "out" "dev" "drivers" "osmesa" ];
|
||||||
|
|
||||||
|
22
pkgs/development/libraries/mesa/musl-fixes.patch
Normal file
22
pkgs/development/libraries/mesa/musl-fixes.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
--- ./src/gallium/winsys/svga/drm/vmw_screen.h.orig
|
||||||
|
+++ ./src/gallium/winsys/svga/drm/vmw_screen.h
|
||||||
|
@@ -34,7 +34,7 @@
|
||||||
|
#ifndef VMW_SCREEN_H_
|
||||||
|
#define VMW_SCREEN_H_
|
||||||
|
|
||||||
|
-
|
||||||
|
+#include <sys/stat.h>
|
||||||
|
#include "pipe/p_compiler.h"
|
||||||
|
#include "pipe/p_state.h"
|
||||||
|
|
||||||
|
--- a/src/util/u_endian.h.orig 2016-11-04 12:16:00.480356454 +0100
|
||||||
|
+++ b/src/util/u_endian.h 2016-11-04 12:16:11.984347944 +0100
|
||||||
|
@@ -27,7 +27,7 @@
|
||||||
|
#ifndef U_ENDIAN_H
|
||||||
|
#define U_ENDIAN_H
|
||||||
|
|
||||||
|
-#if defined(__GLIBC__) || defined(ANDROID) || defined(__CYGWIN__)
|
||||||
|
+#if defined(__linux__) || defined(ANDROID) || defined(__CYGWIN__)
|
||||||
|
#include <endian.h>
|
||||||
|
|
||||||
|
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
Loading…
Reference in New Issue
Block a user