]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: add missing NR underscore to UL_CHECK_SYSCALL()
authorSami Kerola <kerolasa@iki.fi>
Mon, 25 Nov 2019 20:33:05 +0000 (20:33 +0000)
committerSami Kerola <kerolasa@iki.fi>
Mon, 25 Nov 2019 20:33:05 +0000 (20:33 +0000)
The unistd.h defines system call numbers with two leading underscores.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
m4/ul.m4

index ef9798ec55f44e2407624efb534a5ed0ccdee8b0..7e9aa1d3913dcd62f3922ce3ed6c527ee667daba 100644 (file)
--- a/m4/ul.m4
+++ b/m4/ul.m4
@@ -105,8 +105,8 @@ AC_DEFUN([UL_CHECK_SYSCALL], [
       [syscall=SYS_$1],
       [dnl Our libc failed use, so see if we can get the kernel
       dnl headers to play ball ...
-      _UL_SYSCALL_CHECK_DECL([_NR_$1],
-       [syscall=_NR_$1],
+      _UL_SYSCALL_CHECK_DECL([__NR_$1],
+       [syscall=__NR_$1],
        [
          syscall=no
          if test "x$linux_os" = xyes; then