Browse Source

fix 64bit build

pull/1639/head
bsp2 6 years ago
parent
commit
66cfd23bba
2 changed files with 11 additions and 6 deletions
  1. +9
    -4
      dep/lglw/lglw_linux.c
  2. +2
    -2
      other/vst2_lglw_debug_plugin/makefile.linux

+ 9
- 4
dep/lglw/lglw_linux.c View File

@@ -42,6 +42,11 @@
#include <GL/gl.h>
#include <GL/glx.h>

#ifdef ARCH_X64
#include <sys/mman.h>
#include <unistd.h>
#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;


+ 2
- 2
other/vst2_lglw_debug_plugin/makefile.linux View File

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


Loading…
Cancel
Save