]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Add check for nice in cmake config
authorArne Schwabe <arne@rfc2549.org>
Tue, 28 Nov 2023 10:41:29 +0000 (11:41 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 2 Dec 2023 16:05:01 +0000 (17:05 +0100)
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>
CMakeLists.txt
config.h.cmake.in

index 4aa979345d95b70ff39bc0b331a64fff7d491292..db9966bcb001097bca6f907481120c07ea228b6a 100644 (file)
@@ -144,6 +144,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)
index 848c5057aa4aef840b3c78223448af149a29f92c..0ef8fe315ff48a8994de7798cdd1e24084e9a3a8 100644 (file)
@@ -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