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

dmsetup: fix usage of ifdefs

This commit is contained in:
Zdenek Kabelac 2015-08-17 15:11:00 +02:00
parent 427d0a5e92
commit 94c56559ca

View File

@ -48,11 +48,11 @@
# include <sys/ioctl.h>
#endif
#if HAVE_SYS_TIMERFD_H
#ifdef HAVE_SYS_TIMERFD_H
# include <sys/timerfd.h>
#endif
#if HAVE_TERMIOS_H
#ifdef HAVE_TERMIOS_H
# include <termios.h>
#endif
@ -532,7 +532,7 @@ static uint64_t _interval_num(void)
return 1 + (uint64_t) _int_args[COUNT_ARG] - _count;
}
#if HAVE_SYS_TIMERFD_H
#ifdef HAVE_SYS_TIMERFD_H
static int _start_timerfd_timer(void)
{
struct itimerspec interval_timer;