The pidfd-utils.c uses Linux-specific APIs (pidfd_open, statx, etc.)
and all its consumers are Linux-only tools. Move it under the LINUX
guard in both meson and autotools build systems.
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/mbsedit.c\
lib/md5.c \
lib/pidutils.c \
- lib/pidfd-utils.c \
lib/pwdutils.c \
lib/randutils.c \
lib/sha1.c \
if LINUX
libcommon_la_SOURCES += \
lib/linux_version.c \
- lib/loopdev.c
+ lib/loopdev.c \
+ lib/pidfd-utils.c
endif
if !HAVE_LANGINFO_H
mbsalign.c
mbsedit.c
pidutils.c
- pidfd-utils.c
pwdutils.c
sha256.c
shells.c
lib_common_sources += '''
linux_version.c
loopdev.c
+ pidfd-utils.c
'''.split()
endif