From: Karel Zak Date: Mon, 4 Apr 2022 09:26:59 +0000 (+0200) Subject: Revert "build-sys: compile procfs and sysfs code in Linux only" X-Git-Tag: v2.39-rc1~738 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=24f79730aa2cb95f5c9a3d11169a99d9cbfd0514;p=thirdparty%2Futil-linux.git Revert "build-sys: compile procfs and sysfs code in Linux only" This reverts commit f30b16edb467484d8d9e5a5b5fd665b83a90ddc9. It seems better to use original solution and depend on HAVE_DIRFD and HAVE_OPENAT, because libblkid and another tools are compiled on non-Linux targets too. --- diff --git a/lib/Makemodule.am b/lib/Makemodule.am index 69191ff397..2856f834d2 100644 --- a/lib/Makemodule.am +++ b/lib/Makemodule.am @@ -56,12 +56,10 @@ 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)