diff options
author | Arne Schwabe | 2023-11-28 11:41:29 +0100 |
---|---|---|
committer | Gert Doering | 2023-12-02 17:06:39 +0100 |
commit | cc81f014bcbcfb248fdae91dc3527565c5889ff4 (patch) | |
tree | 477e9ac2b6c868038d427690384da3d3a2641b6a | |
parent | 64703e72df371dabecc8ab83a19621fd9f27c56b (diff) | |
download | openvpn-cc81f014bcbcfb248fdae91dc3527565c5889ff4.zip openvpn-cc81f014bcbcfb248fdae91dc3527565c5889ff4.tar.gz |
Add check for nice in cmake config
Change-Id: I2cc8f9b82079acca250db5871ffd9fad2997d1a8
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20231128104129.62761-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27574.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 4d8ee61ce2c2a8b387773d33b4dd01bc2e147941)
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | config.h.cmake.in | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3240be7..2b673b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -148,6 +148,7 @@ check_symbol_exists(dup2 unistd.h HAVE_DUP2) check_symbol_exists(fork unistd.h HAVE_FORK) check_symbol_exists(execve unistd.h HAVE_EXECVE) check_symbol_exists(ftruncate unistd.h HAVE_FTRUNCATE) +check_symbol_exists(nice unistd.h HAVE_NICE) check_symbol_exists(setgid unistd.h HAVE_SETGID) check_symbol_exists(setuid unistd.h HAVE_SETUID) check_symbol_exists(setsid unistd.h HAVE_SETSID) diff --git a/config.h.cmake.in b/config.h.cmake.in index 29006ce..fd62859 100644 --- a/config.h.cmake.in +++ b/config.h.cmake.in @@ -215,7 +215,7 @@ don't. */ #cmakedefine HAVE_NET_TUN_IF_TUN_H /* Define to 1 if you have the `nice' function. */ -#undef HAVE_NICE +#cmakedefine HAVE_NICE /* Define to 1 if you have the `openlog' function. */ #cmakedefine HAVE_OPENLOG |