diff --git a/dep/lglw/lglw_linux.c b/dep/lglw/lglw_linux.c index 98403f06..9a5ae1ea 100644 --- a/dep/lglw/lglw_linux.c +++ b/dep/lglw/lglw_linux.c @@ -42,6 +42,11 @@ #include #include +#ifdef ARCH_X64 +#include +#include +#endif // ARCH_X64 + #define Dprintf if(0);else printf // #define Dprintf if(1);else printf @@ -387,10 +392,10 @@ void loc_setEventProc (Display *display, Window window) { static char *ptr = 0; if (!ptr) { ptr = (char *)mmap(0, - PAGE_SIZE, - PROT_READ | PROT_WRITE | PROT_EXEC, - MAP_ANONYMOUS | MAP_PRIVATE | MAP_32BIT, - 0, 0); + getpagesize()/*PAGE_SIZE*/, + PROT_READ | PROT_WRITE | PROT_EXEC, + MAP_ANONYMOUS | MAP_PRIVATE | MAP_32BIT, + 0, 0); if (ptr == MAP_FAILED) { perror("mmap"); ptr = 0; diff --git a/other/vst2_lglw_debug_plugin/makefile.linux b/other/vst2_lglw_debug_plugin/makefile.linux index c7d13908..38993182 100644 --- a/other/vst2_lglw_debug_plugin/makefile.linux +++ b/other/vst2_lglw_debug_plugin/makefile.linux @@ -30,8 +30,8 @@ ifeq ($(USER),cameron) cp $(TARGET) /home/cameron/.local/share/VST/ endif ifeq ($(USER),bsp) - # copy to Qtractor VST search path - cp $(TARGET) /usr/local/lib/vst/ + # copy to Qtractor VST search path + cp $(TARGET) /usr/local/lib/vst/ endif # always copy to vst2_bin/ cp $(TARGET) ../../vst2_bin/