Browse code

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)

Arne Schwabe authored on 2023/11/28 19:41:29
Showing 2 changed files
... ...
@@ -148,6 +148,7 @@ check_symbol_exists(dup2 unistd.h HAVE_DUP2)
148 148
 check_symbol_exists(fork unistd.h HAVE_FORK)
149 149
 check_symbol_exists(execve unistd.h HAVE_EXECVE)
150 150
 check_symbol_exists(ftruncate unistd.h HAVE_FTRUNCATE)
151
+check_symbol_exists(nice unistd.h HAVE_NICE)
151 152
 check_symbol_exists(setgid unistd.h HAVE_SETGID)
152 153
 check_symbol_exists(setuid unistd.h HAVE_SETUID)
153 154
 check_symbol_exists(setsid unistd.h HAVE_SETSID)
... ...
@@ -215,7 +215,7 @@ don't. */
215 215
 #cmakedefine HAVE_NET_TUN_IF_TUN_H
216 216
 
217 217
 /* Define to 1 if you have the `nice' function. */
218
-#undef HAVE_NICE
218
+#cmakedefine HAVE_NICE
219 219
 
220 220
 /* Define to 1 if you have the `openlog' function. */
221 221
 #cmakedefine HAVE_OPENLOG