소스 검색

Fixed bug 5169 - Can not build current sources because of recent thread management changes

Manuel Alfayate Corchete

I'm trying to build SDL2 with threads support here in GNU/Linux, both X86 and ARM, and it does not seem to be possible ATM:


/home/manuel/src/SDLLLL/src/core/linux/SDL_threadprio.c:233:26: error: 'rtkit_max_realtime_priority' undeclared (first use in this function)
Sam Lantinga 5 년 전
부모
커밋
cced5eb937
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/core/linux/SDL_threadprio.c

+ 4 - 0
src/core/linux/SDL_threadprio.c

@@ -181,6 +181,10 @@ rtkit_setpriority_realtime(pid_t thread, int rt_priority)
     }
     return SDL_TRUE;
 }
+#else
+
+#define rtkit_max_realtime_priority 99
+
 #endif /* dbus */
 #endif /* threads */