diff options
author | Karel Zak | 2012-11-02 12:07:36 +0100 |
---|---|---|
committer | Karel Zak | 2012-11-02 12:07:36 +0100 |
commit | e21e6d265d3803e51db2be6a332a601280fce7a8 (patch) | |
tree | 45718d862ebc0ad7897b01c10def67951ad8b111 /lib/path.c | |
parent | sfdisk: fix formatting typo in man page (diff) | |
download | kernel-qcow2-util-linux-e21e6d265d3803e51db2be6a332a601280fce7a8.tar.gz kernel-qcow2-util-linux-e21e6d265d3803e51db2be6a332a601280fce7a8.tar.xz kernel-qcow2-util-linux-e21e6d265d3803e51db2be6a332a601280fce7a8.zip |
build-sys: cleanup cpu_set_t usage
- make taskset depend on cpu_set_t
- make cpuset.c optional for libcommon and lib/path.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/path.c')
-rw-r--r-- | lib/path.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/path.c b/lib/path.c index 8437c0220..404eeeb24 100644 --- a/lib/path.c +++ b/lib/path.c @@ -28,7 +28,6 @@ #include <errno.h> #include "all-io.h" -#include "cpuset.h" #include "path.h" #include "nls.h" #include "c.h" @@ -151,6 +150,8 @@ path_exist(const char *path, ...) return access(p, F_OK) == 0; } +#ifdef HAVE_CPU_SET_T + static cpu_set_t * path_cpuparse(int maxcpus, int islist, const char *path, va_list ap) { @@ -209,6 +210,8 @@ path_cpulist(int maxcpus, const char *path, ...) return set; } +#endif /* HAVE_CPU_SET_T */ + void path_setprefix(const char *prefix) { |