]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: compile procfs and sysfs code in Linux only
authorKarel Zak <kzak@redhat.com>
Fri, 1 Apr 2022 07:44:18 +0000 (09:44 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 1 Apr 2022 07:48:10 +0000 (09:48 +0200)
Addresses: https://github.com/util-linux/util-linux/issues/1634
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/Makemodule.am

index 2856f834d213fee356bcb599783a77738c3c66ac..69191ff39756714b1e2149f1c04cef161ebe071f 100644 (file)
@@ -56,10 +56,12 @@ endif
 if HAVE_OPENAT
 if HAVE_DIRFD
 libcommon_la_SOURCES += lib/path.c
+if LINUX
 libcommon_la_SOURCES += lib/sysfs.c
 libcommon_la_SOURCES += lib/procfs.c
 endif
 endif
+endif
 
 EXTRA_LTLIBRARIES += libtcolors.la
 libtcolors_la_CFLAGS = $(AM_CFLAGS)