Browse Source

Added support DragonFly os from BSD family

pull/557/head
maficccc@gmail.com 6 years ago
committed by Martinfx
parent
commit
965cc8ab6f
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      cmake/utils.cmake
  2. +2
    -2
      src/rglfw.c

+ 2
- 2
cmake/utils.cmake View File

@ -54,8 +54,8 @@ if(${PLATFORM} MATCHES "Desktop")
endif()
# Ugly crutch. Temporary workaround for #551
if("${CMAKE_SYSTEM_NAME}" MATCHES "(Free|Net|Open)BSD")
link_directories("/usr/local/lib")
if("${CMAKE_SYSTEM_NAME}" MATCHES "(Free|Net|Open)BSD|DragonFly")
link_directories("${CMAKE_INSTALL_PREFIX}/lib")
endif()
if(CMAKE_SYSTEM_NAME STREQUAL Linux)

+ 2
- 2
src/rglfw.c View File

@ -37,7 +37,7 @@
#define _GLFW_X11
#endif
#endif
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__)
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
#define _GLFW_X11
#endif
#if defined(__APPLE__)
@ -91,7 +91,7 @@
#include "external/glfw/src/osmesa_context.c"
#endif
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__)
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__) || defined(__DragonFly__)
#include "external/glfw/src/x11_init.c"
#include "external/glfw/src/x11_monitor.c"
#include "external/glfw/src/x11_window.c"

Loading…
Cancel
Save