musl.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --- a/src/util/rand_xor.c 2020-10-03 12:27:48.489024729 +0200
  2. +++ b/src/util/rand_xor.c 2020-10-03 12:31:05.927113521 +0200
  3. @@ -28,6 +28,7 @@
  4. #if defined(HAVE_GETRANDOM)
  5. #include <sys/random.h>
  6. #endif
  7. +#include <sys/types.h> /* size_t, ssize_t */
  8. #include <unistd.h>
  9. #include <fcntl.h>
  10. #endif
  11. --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
  12. +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
  13. @@ -30,6 +30,7 @@
  14. #include <amdgpu.h>
  15. #include <pthread.h>
  16. +#include <sys/types.h>
  17. #include "util/list.h"
  18. #include "util/rwlock.h"
  19. #include "ac_gpu_info.h"
  20. --- a/src/gallium/frontends/nine/nine_debug.c 2020-03-06 07:46:48.278918421 +0100
  21. +++ b/src/gallium/frontends/nine/nine_debug.c 2020-03-06 07:51:32.919964119 +0100
  22. @@ -65,7 +65,7 @@ _nine_debug_printf( unsigned long flag,
  23. {
  24. static boolean first = TRUE;
  25. static unsigned long dbg_flags = DBG_ERROR | DBG_WARN;
  26. - unsigned long tid = 0;
  27. + pthread_t tid = 0;
  28. if (first) {
  29. first = FALSE;
  30. @@ -74,7 +74,7 @@ _nine_debug_printf( unsigned long flag,
  31. #if defined(HAVE_PTHREAD)
  32. if (dbg_flags & DBG_TID)
  33. - tid = (unsigned long)pthread_self();
  34. + tid = pthread_self();
  35. #endif
  36. if (dbg_flags & flag) {