Portability

- Fixed cmake issues on NetBSD (thanks to atomicules).
This commit is contained in:
Paul Beckingham 2014-04-15 20:55:26 -04:00
parent d0ebf4c354
commit 3d79abb106
3 changed files with 8 additions and 1 deletions

View file

@ -103,6 +103,7 @@ The following submitted code, packages or analysis, and deserve special thanks:
Jochen Sprickerhof
Alexander Sulfrian
David Binderman
atomicules
Thanks to the following, who submitted detailed bug reports and excellent
suggestions:

View file

@ -29,6 +29,12 @@ else (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set (UNKNOWN true)
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
if (NETBSD)
#Since readline, etc likely to be in /usr/pkg/lib, not standard library
#Otherwise will remove links during install
set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
endif (NETBSD)
if (FREEBSD)
SET (TASK_MAN1DIR man/man1 CACHE STRING "Installation directory for man pages, section 1")
SET (TASK_MAN5DIR man/man5 CACHE STRING "Installation directory for man pages, section 5")

View file

@ -34,7 +34,7 @@
#include <stdlib.h>
#include <Directory.h>
#ifdef SOLARIS
#if defined SOLARIS || defined NETBSD
#include <limits.h>
#endif