소스 검색

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
   // 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
 

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

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