1 --- a/include/libcgroup/config.h
2 +++ b/include/libcgroup/config.h
4 #error "Only <libcgroup.h> should be included directly."
16 * @defgroup group_config 5. Configuration
18 @@ -107,6 +105,8 @@ int cgroup_config_create_template_group(
27 #endif /*_LIBCGROUP_CONFIG_H*/
28 --- a/include/libcgroup/error.h
29 +++ b/include/libcgroup/error.h
31 #error "Only <libcgroup.h> should be included directly."
35 -#include <features.h>
43 * @defgroup group_errors 6. Error handling
45 @@ -99,6 +97,8 @@ int cgroup_get_last_errno(void);
54 #endif /* _LIBCGROUP_INIT_H */
55 --- a/include/libcgroup/groups.h
56 +++ b/include/libcgroup/groups.h
61 -#include <features.h>
62 #include <sys/types.h>
72 * Flags for cgroup_delete_cgroup_ext().
73 @@ -577,6 +578,8 @@ char *cgroup_get_cgroup_name(struct cgroup *cgroup);
82 #endif /* _LIBCGROUP_GROUPS_H */
83 --- a/include/libcgroup/init.h
84 +++ b/include/libcgroup/init.h
86 #error "Only <libcgroup.h> should be included directly."
90 -#include <features.h>
98 * @defgroup group_init 1. Initialization
100 @@ -58,6 +56,8 @@ int cgroup_get_subsys_mount_point(const char *controller, char **mount_point);
109 #endif /* _LIBCGROUP_INIT_H */
110 --- a/include/libcgroup/iterators.h
111 +++ b/include/libcgroup/iterators.h
114 #include <sys/types.h>
116 -#include <features.h>
125 * @defgroup group_iterators 3. Iterators
126 @@ -423,6 +424,8 @@ int cgroup_get_subsys_mount_point_end(void **handle);
135 #endif /* _LIBCGROUP_ITERATORS_H */
136 --- a/include/libcgroup/log.h
137 +++ b/include/libcgroup/log.h
139 #error "Only <libcgroup.h> should be included directly."
143 -#include <features.h>
154 * @defgroup group_log 7. Logging
155 @@ -142,6 +140,8 @@ extern int cgroup_parse_log_level_str(const char *levelstr);
164 #endif /* _LIBCGROUP_LOG_H */
165 --- a/include/libcgroup/tasks.h
166 +++ b/include/libcgroup/tasks.h
168 #include <libcgroup/groups.h>
171 -#include <features.h>
180 /** Flags for cgroup_change_cgroup_uid_gid(). */
182 @@ -204,6 +205,8 @@ int cgroup_register_unchanged_process(pid_t pid, int flags);
191 #endif /* _LIBCGROUP_TASKS_H */
192 --- a/src/daemon/cgrulesengd.h
193 +++ b/src/daemon/cgrulesengd.h
195 #ifndef _CGRULESENGD_H
196 #define _CGRULESENGD_H
198 -#include <features.h>
206 #include "libcgroup.h"
207 @@ -119,7 +119,9 @@ void cgre_flash_templates(int signum);
209 void cgre_catch_term(int signum);
216 #endif /* _CGRULESENGD_H */
218 --- a/src/libcgroup-internal.h
219 +++ b/src/libcgroup-internal.h
222 #define __LIBCG_INTERNAL
231 @@ -279,6 +281,8 @@ extern void cgroup_dictionary_iterator_end(void **handle);
233 int cg_chmod_path(const char *path, mode_t mode, int owner_is_umask);