From 45d826d31cca25121baa174117f30feb628c5092 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 9 Dec 2016 16:21:54 +0000 Subject: [PATCH] make it compilable under openbsd --- CMakeLists.txt | 3 +++ sys/sys_public.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d3ea50..809251a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,6 +108,9 @@ include_directories(${VORBISFILE_INCLUDE_DIR}) find_package(OpenAL REQUIRED) include_directories(${OPENAL_INCLUDE_DIR}) +find_package(X11 REQUIRED) +include_directories(${X11_INCLUDE_DIR}) + if (SDL2) # skip SDL2main if(APPLE OR WIN32) diff --git a/sys/sys_public.h b/sys/sys_public.h index 150b16f..fbac1a8 100644 --- a/sys/sys_public.h +++ b/sys/sys_public.h @@ -41,7 +41,7 @@ typedef enum { CPUID_SSE2 = 0x00080, // Streaming SIMD Extensions 2 CPUID_SSE3 = 0x00100, // Streaming SIMD Extentions 3 aka Prescott's New Instructions CPUID_ALTIVEC = 0x00200, // AltiVec -} cpuid_t; +} cpuidSimd_t; typedef enum { AXIS_SIDE,