1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +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> # include <sys/ioctl.h>
#endif #endif
#if HAVE_SYS_TIMERFD_H #ifdef HAVE_SYS_TIMERFD_H
# include <sys/timerfd.h> # include <sys/timerfd.h>
#endif #endif
#if HAVE_TERMIOS_H #ifdef HAVE_TERMIOS_H
# include <termios.h> # include <termios.h>
#endif #endif
@ -532,7 +532,7 @@ static uint64_t _interval_num(void)
return 1 + (uint64_t) _int_args[COUNT_ARG] - _count; 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) static int _start_timerfd_timer(void)
{ {
struct itimerspec interval_timer; struct itimerspec interval_timer;