瀏覽代碼

Fix build issues on Linux

rdb 16 年之前
父節點
當前提交
39c1cb42c9
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      panda/src/display/Sources.pp
  2. 1 0
      panda/src/display/subprocessWindowBuffer.cxx

+ 1 - 1
panda/src/display/Sources.pp

@@ -107,7 +107,7 @@
   // link with it in direct/src/plugin, without pulling in the rest of
   // link with it in direct/src/plugin, without pulling in the rest of
   // Panda.
   // Panda.
 
 
-  #define BUILD_TARGET $[and $[OSX_PLATFORM],$[HAVE_P3D_PLUGIN]]
+  #define BUILD_TARGET $[and $[or $[OSX_PLATFORM],$[UNIX_PLATFORM]],$[HAVE_P3D_PLUGIN]]
 
 
   #define TARGET subprocbuffer
   #define TARGET subprocbuffer
 
 

+ 1 - 0
panda/src/display/subprocessWindowBuffer.cxx

@@ -15,6 +15,7 @@
 #include "subprocessWindowBuffer.h"
 #include "subprocessWindowBuffer.h"
 #include <sys/mman.h>
 #include <sys/mman.h>
 #include <fcntl.h>
 #include <fcntl.h>
+#include <string.h>
 
 
 #include <iostream>
 #include <iostream>
 using namespace std;
 using namespace std;