From: Karel Zak Date: Fri, 1 Apr 2022 07:44:18 +0000 (+0200) Subject: build-sys: compile procfs and sysfs code in Linux only X-Git-Tag: v2.39-rc1~742 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f30b16edb467484d8d9e5a5b5fd665b83a90ddc9;p=thirdparty%2Futil-linux.git build-sys: compile procfs and sysfs code in Linux only Addresses: https://github.com/util-linux/util-linux/issues/1634 Signed-off-by: Karel Zak --- diff --git a/lib/Makemodule.am b/lib/Makemodule.am index 2856f834d2..69191ff397 100644 --- a/lib/Makemodule.am +++ b/lib/Makemodule.am @@ -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)