1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

build: include configure.h

It's important to consistenly include  configure.h as the 1st. header.
It containts #defines influencing behavior of other included header
files.
This commit is contained in:
Zdenek Kabelac 2018-06-19 20:43:31 +02:00
parent 086f1ef4a0
commit c728d88e11
14 changed files with 23 additions and 25 deletions

View File

@ -16,6 +16,7 @@
* 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"

View File

@ -12,9 +12,9 @@
* 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"

View File

@ -17,6 +17,9 @@
#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>
@ -31,9 +34,6 @@
#include <stdlib.h>
#include <stdio.h>
#include "base/data-struct/list.h"
#include "base/data-struct/hash.h"
#ifndef __GNUC__
# define __typeof__ typeof
#endif

View File

@ -13,12 +13,12 @@
* 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>

View File

@ -1,3 +1,4 @@
#include "configure.h"
#include "target.h"
// For DM_ARRAY_SIZE!

View File

@ -15,6 +15,7 @@
#ifndef BCACHE_H
#define BCACHE_H
#include "configure.h"
#include "device_mapper/all.h"
#include <linux/fs.h>

View File

@ -18,11 +18,10 @@
// 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>
@ -35,6 +34,7 @@
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
#ifdef UDEV_SYNC_SUPPORT
# include <sys/types.h>

View File

@ -12,9 +12,8 @@
* 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"

View File

@ -12,15 +12,14 @@
* 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
/*----------------------------------------------------------------

View File

@ -14,9 +14,8 @@
#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>

View File

@ -1,6 +1,7 @@
#ifndef TEST_UNIT_FRAMEWORK_H
#define TEST_UNIT_FRAMEWORK_H
#include "configure.h"
#include "device_mapper/all.h"
#include <stdbool.h>

View File

@ -14,6 +14,9 @@
#define _GNU_SOURCE
#include "units.h"
#include "lib/device/bcache.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
@ -22,10 +25,6 @@
#include <fcntl.h>
#include <unistd.h>
#include "lib/device/bcache.h"
#include "framework.h"
#include "units.h"
//----------------------------------------------------------------
#define SECTOR_SIZE 512

View File

@ -10,11 +10,10 @@
// 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>

View File

@ -12,9 +12,8 @@
* 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"
//----------------------------------------------------------------