]> git.proxmox.com Git - mirror_lxc.git/commit
Check for non-posix utmpxname in configure
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 29 Jan 2014 14:23:48 +0000 (14:23 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 29 Jan 2014 16:15:52 +0000 (16:15 +0000)
commit8b6d8b712b867ab352598ed4b73e80e54a8c915a
tree0c11bbd6dbf4869e83e263dcde3add7c95ba46d8
parent47add7e5b6c917cd9ee572f9d9e1c5a8f3d9f2fb
Check for non-posix utmpxname in configure

utmpx.h is specified in POSIX but utmpxname is not so we check for
utmpxname in configure script.

This fixes the following compile error with musl libc:
lxcutmp.c: In function 'utmp_get_runlevel':
lxcutmp.c:249:2: error: implicit declaration of function 'utmpxname' [-Werror=implicit-function-declaration]
  if (!access(path, F_OK) && !utmpxname(path))
    ^

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
configure.ac
src/lxc/lxcutmp.c