diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/blkdev.c | 4 | ||||
-rw-r--r-- | lib/procutils.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/blkdev.c b/lib/blkdev.c index fb69e88b5..5cb6554df 100644 --- a/lib/blkdev.c +++ b/lib/blkdev.c @@ -210,11 +210,15 @@ blkdev_get_sector_size(int fd, int *sector_size) */ int blkdev_is_misaligned(int fd) { +#ifdef BLKALIGNOFF int aligned; if (ioctl(fd, BLKALIGNOFF, &aligned) < 0) return 0; /* probably kernel < 2.6.32 */ return aligned; +#else + return 0; +#endif } #ifdef TEST_PROGRAM diff --git a/lib/procutils.c b/lib/procutils.c index 6a9ee7434..2c9e83722 100644 --- a/lib/procutils.c +++ b/lib/procutils.c @@ -23,6 +23,7 @@ #include <ctype.h> #include "procutils.h" +#include "c.h" /* * @pid: process ID for which we want to obtain the threads group |