Skip to content

Commit

Permalink
Add check for nice in cmake config
Browse files Browse the repository at this point in the history
Change-Id: I2cc8f9b82079acca250db5871ffd9fad2997d1a8
Acked-by: Frank Lichtenheld <[email protected]>
Signed-off-by: Arne Schwabe <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg27574.html
Signed-off-by: Gert Doering <[email protected]>
(cherry picked from commit 4d8ee61)
  • Loading branch information
schwabe authored and cron2 committed Dec 2, 2023
1 parent 64703e7 commit cc81f01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion config.h.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc81f01

Please sign in to comment.