It's important to consistenly include configure.h as the 1st. header.
It containts #defines influencing behavior of other included header
files.
* dmeventd - dm event daemon to monitor active mapped devices
*/
+#include "device_mapper/misc/dmlib.h"
#include "base/memory/zalloc.h"
#include "device_mapper/misc/dm-logging.h"
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "device_mapper/misc/dmlib.h"
#include "base/memory/zalloc.h"
#include "device_mapper/misc/dm-logging.h"
-#include "device_mapper/misc/dmlib.h"
#include "daemons/dmeventd/libdevmapper-event.h"
#include "dmeventd.h"
#include "lib/misc/intl.h"
#ifndef LIB_DEVICE_MAPPER_H
#define LIB_DEVICE_MAPPER_H
+#include "base/data-struct/list.h"
+#include "base/data-struct/hash.h"
+
#include <inttypes.h>
#include <stdarg.h>
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
-#include "base/data-struct/list.h"
-#include "base/data-struct/hash.h"
-
#ifndef __GNUC__
# define __typeof__ typeof
#endif
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "base/memory/zalloc.h"
-#include "device_mapper/misc/dmlib.h"
-#include "ioctl/libdm-targets.h"
+#include "misc/dmlib.h"
#include "libdm-common.h"
+#include "ioctl/libdm-targets.h"
#include "misc/kdev_t.h"
#include "misc/dm-ioctl.h"
+#include "base/memory/zalloc.h"
#include <stdarg.h>
#include <sys/param.h>
+#include "configure.h"
#include "target.h"
// For DM_ARRAY_SIZE!
#ifndef BCACHE_H
#define BCACHE_H
+#include "configure.h"
#include "device_mapper/all.h"
#include <linux/fs.h>
// For canonicalize_file_name()
#define _GNU_SOURCE
-#include <stdlib.h>
+#include "configure.h"
#include "libdm/misc/dm-logging.h"
#include "libdm/dm-tools/util.h"
-#include "configure.h"
#include <ctype.h>
#include <dirent.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
+#include <stdlib.h>
#ifdef UDEV_SYNC_SUPPORT
# include <sys/types.h>
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "scripts/generator-internals.c"
-#include "framework.h"
#include "units.h"
+#include "scripts/generator-internals.c"
#include "device_mapper/all.h"
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "units.h"
+#include "lib/device/bcache.h"
+
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include "lib/device/bcache.h"
-#include "framework.h"
-#include "units.h"
-
#define SHOW_MOCK_CALLS 0
/*----------------------------------------------------------------
#define _GNU_SOURCE
-#include "lib/device/bcache.h"
-#include "framework.h"
#include "units.h"
+#include "lib/device/bcache.h"
#include <errno.h>
#include <stdio.h>
#ifndef TEST_UNIT_FRAMEWORK_H
#define TEST_UNIT_FRAMEWORK_H
+#include "configure.h"
#include "device_mapper/all.h"
#include <stdbool.h>
#define _GNU_SOURCE
+#include "units.h"
+#include "lib/device/bcache.h"
+
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
-#include "lib/device/bcache.h"
-#include "framework.h"
-#include "units.h"
-
//----------------------------------------------------------------
#define SECTOR_SIZE 512
// along with this program; if not, write to the Free Software Foundation,
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+#include "units.h"
#include "base/data-struct/radix-tree.h"
#include "base/memory/container_of.h"
-#include "units.h"
-
#include <stdio.h>
#include <stdlib.h>
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "device_mapper/vdo/target.h"
-#include "framework.h"
#include "units.h"
+#include "device_mapper/vdo/target.h"
//----------------------------------------------------------------