浏览代码

SDL_dbus.h: define DBUS_TIMEOUT_USE_DEFAULT if not already defined.

(cherry picked from commit c521e1286be9284d3652569fab02718d9faa4d06)
Ozkan Sezer 2 年之前
父节点
当前提交
834e8898b9
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/core/linux/SDL_dbus.h

+ 4 - 0
src/core/linux/SDL_dbus.h

@@ -29,6 +29,10 @@
 #include "SDL_stdinc.h"
 #include <dbus/dbus.h>
 
+#ifndef DBUS_TIMEOUT_USE_DEFAULT
+#define DBUS_TIMEOUT_USE_DEFAULT -1
+#endif
+
 typedef struct SDL_DBusContext
 {
     DBusConnection *session_conn;