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 /include | |
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 'include')
-rw-r--r-- | include/path.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/path.h b/include/path.h index 8e79a8560..3dfd51794 100644 --- a/include/path.h +++ b/include/path.h @@ -1,3 +1,6 @@ +#ifndef UTIL_LINUX_PATH_H +#define UTIL_LINUX_PATH_H + #include <stdio.h> extern FILE *path_fopen(const char *mode, int exit_on_err, const char *path, ...) @@ -10,8 +13,15 @@ extern int path_getnum(const char *path, ...) __attribute__ ((__format__ (__printf__, 1, 2))); extern int path_exist(const char *path, ...) __attribute__ ((__format__ (__printf__, 1, 2))); + +#ifdef HAVE_CPU_SET_T +# include "cpuset.h" + extern cpu_set_t *path_cpuset(int, const char *path, ...) __attribute__ ((__format__ (__printf__, 2, 3))); extern cpu_set_t *path_cpulist(int, const char *path, ...) __attribute__ ((__format__ (__printf__, 2, 3))); extern void path_setprefix(const char *); +#endif /* HAVE_CPU_SET_T */ + +#endif /* UTIL_LINUX_PATH_H */ |