mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: set _REENTRANT in header
Use same way of setting _REENTRANT as in other files - set it in the first included header file (clvmd-common.h)
This commit is contained in:
parent
451a168bf8
commit
20179523e2
@ -87,7 +87,6 @@ include $(top_builddir)/make.tmpl
|
|||||||
LVMLIBS += -ldevmapper
|
LVMLIBS += -ldevmapper
|
||||||
LIBS += $(PTHREAD_LIBS)
|
LIBS += $(PTHREAD_LIBS)
|
||||||
|
|
||||||
DEFS += -D_REENTRANT
|
|
||||||
CFLAGS += -fno-strict-aliasing $(EXTRA_EXEC_CFLAGS)
|
CFLAGS += -fno-strict-aliasing $(EXTRA_EXEC_CFLAGS)
|
||||||
LDFLAGS += $(EXTRA_EXEC_LDFLAGS)
|
LDFLAGS += $(EXTRA_EXEC_LDFLAGS)
|
||||||
|
|
||||||
|
@ -20,14 +20,13 @@
|
|||||||
|
|
||||||
#include "configure.h"
|
#include "configure.h"
|
||||||
|
|
||||||
|
#define _REENTRANT
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#define _FILE_OFFSET_BITS 64
|
#define _FILE_OFFSET_BITS 64
|
||||||
|
|
||||||
#include "libdevmapper.h"
|
#include "libdevmapper.h"
|
||||||
|
|
||||||
#include "lvm-logging.h"
|
#include "lvm-logging.h"
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h>
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user