mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge #6777 from justinmk/bsd
This commit is contained in:
commit
1cf377f23a
@ -228,7 +228,7 @@ else()
|
||||
|
||||
# On FreeBSD 64 math.h uses unguarded C11 extension, which taints clang
|
||||
# 3.4.1 used there.
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||
add_definitions(-Wno-c11-extensions)
|
||||
endif()
|
||||
endif()
|
||||
@ -456,7 +456,6 @@ include(InstallHelpers)
|
||||
file(GLOB MANPAGES
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
man/nvim.1)
|
||||
|
||||
install_helper(
|
||||
FILES ${MANPAGES}
|
||||
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
||||
|
@ -1,3 +1,12 @@
|
||||
# Fix CMAKE_INSTALL_MANDIR on BSD before including GNUInstallDirs. #6771
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "BSD" AND NOT DEFINED CMAKE_INSTALL_MANDIR)
|
||||
if(DEFINED ENV{MANPREFIX})
|
||||
set(CMAKE_INSTALL_MANDIR "$ENV{MANPREFIX}/man")
|
||||
else()
|
||||
set(CMAKE_INSTALL_MANDIR "/usr/local/man")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# For $CMAKE_INSTALL_{DATAROOT,MAN, ...}DIR
|
||||
include(GNUInstallDirs)
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
// forkpty is not in POSIX, so headers are platform-specific
|
||||
#if defined(__FreeBSD__)
|
||||
#if defined(__FreeBSD__) || defined (__DragonFly__)
|
||||
# include <libutil.h>
|
||||
#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
|
||||
# include <util.h>
|
||||
|
Loading…
Reference in New Issue
Block a user