]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: fix test_procfs SOURCES
authorKarel Zak <kzak@redhat.com>
Thu, 7 Oct 2021 08:43:32 +0000 (10:43 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 7 Oct 2021 08:43:32 +0000 (10:43 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/Makemodule.am

index 62bea572799df41b78511581aa71a9b41f71783d..df2d5945dca8b67ab9c9e3602fbfe49a9a1aee42 100644 (file)
@@ -179,6 +179,9 @@ test_sysfs_CFLAGS = $(AM_CFLAGS) -DTEST_PROGRAM_SYSFS
 test_sysfs_LDADD = $(LDADD)
 
 test_procfs_SOURCES = lib/procfs.c lib/path.c lib/fileutils.c lib/strutils.c
+if HAVE_CPU_SET_T
+test_procfs_SOURCES += lib/cpuset.c
+endif
 test_procfs_CFLAGS = $(AM_CFLAGS) -DTEST_PROGRAM_PROCFS
 test_procfs_LDADD = $(LDADD)