Skip to content

Commit

Permalink
Fix building on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
i0ntempest committed Aug 20, 2021
1 parent 9c2061e commit 77ffb87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -60,6 +60,7 @@ AC_CHECK_HEADERS([\
sys/ioccom.h \
sys/mkdev.h \
sys/queue.h \
sys/sysmacros.h \
])

AC_CHECK_HEADERS([endian.h sys/endian.h libkern/OSByteOrder.h])
Expand Down
5 changes: 4 additions & 1 deletion src/blkdev/blkdev.c
Expand Up @@ -7,12 +7,15 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/sysmacros.h>
#include <unistd.h>
#include <stdint.h>
#include <stdio.h>
#include <limits.h>

#ifdef HAVE_SYS_SYSMACROS_H
#include <sys/sysmacros.h>
#endif

#ifdef HAVE_LINUX_HDREG_H
#include <linux/hdreg.h>
#endif
Expand Down
3 changes: 3 additions & 0 deletions src/device_info.c
Expand Up @@ -24,7 +24,10 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>

#ifdef HAVE_SYS_SYSMACROS_H
#include <sys/sysmacros.h>
#endif

#ifdef HAVE_LINUX_LOOP_H
#include <linux/loop.h>
Expand Down

0 comments on commit 77ffb87

Please sign in to comment.