From 2208b3ccb298be2675cf005b761b1668f8cd576f Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Mon, 29 Feb 2016 12:38:58 +0100 Subject: lib: remove openat fallback functions (include/at.h) I have validated that we are still compatible at least back to - openSUSE 11.4 - SLE 11 - RHEL/CentOS 6 - OSX 10.10.x, (Xcode 6.3) - FreeBSD 10.2 Confirmed incompatibility: - OSX 10.9.x, (Xcode 6.2) Signed-off-by: Ruediger Meier --- lib/loopdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/loopdev.c') diff --git a/lib/loopdev.c b/lib/loopdev.c index 5f3c3a246..b2c8b987b 100644 --- a/lib/loopdev.c +++ b/lib/loopdev.c @@ -40,7 +40,6 @@ #include "pathnames.h" #include "loopdev.h" #include "canonicalize.h" -#include "at.h" #include "blkdev.h" #include "debug.h" @@ -546,7 +545,7 @@ static int loopcxt_next_from_sysfs(struct loopdev_cxt *lc) continue; snprintf(name, sizeof(name), "%s/loop/backing_file", d->d_name); - if (fstat_at(fd, _PATH_SYS_BLOCK, name, &st, 0) != 0) + if (fstatat(fd, name, &st, 0) != 0) continue; if (loopiter_set_device(lc, d->d_name) == 0) -- cgit v1.2.3-55-g7522