mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: do include lvm headers in libdm build
Relocate some defines from lvm headers to those few shared between libdm and lib code.
This commit is contained in:
parent
5553a099d1
commit
d4d8060ff4
@ -21,11 +21,6 @@
|
||||
|
||||
#include "libdevmapper.h"
|
||||
|
||||
/* Define some portable printing types */
|
||||
#define PRIsize_t "zu"
|
||||
#define PRIptrdiff_t "td"
|
||||
#define PRIpid_t PRId32
|
||||
|
||||
struct str_list {
|
||||
struct dm_list list;
|
||||
const char *str;
|
||||
|
@ -25,17 +25,22 @@
|
||||
#define _GNU_SOURCE
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
|
||||
/* Define some portable printing types */
|
||||
#define PRIsize_t "zu"
|
||||
#define PRIptrdiff_t "td"
|
||||
#define PRIpid_t PRId32
|
||||
|
||||
#include "intl.h"
|
||||
#include "libdevmapper.h"
|
||||
#include "lvm-globals.h"
|
||||
#include "lvm-wrappers.h"
|
||||
#include "lvm-types.h"
|
||||
#include "util.h"
|
||||
|
||||
#ifdef DM
|
||||
# include "dm-logging.h"
|
||||
#else
|
||||
# include "lvm-logging.h"
|
||||
# include "lvm-globals.h"
|
||||
# include "lvm-wrappers.h"
|
||||
# include "lvm-types.h"
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
|
Loading…
Reference in New Issue
Block a user