Include sys/sysmacros.h on platforms that have it

This addresses issue 202

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
libnfs-4.0.0-vitalif
Ronnie Sahlberg 2017-05-09 14:30:14 -07:00
parent 43346ffd02
commit 5b28ab5d53
2 changed files with 5 additions and 1 deletions

View File

@ -112,6 +112,10 @@ esac
AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32")
AC_SUBST([LIBSOCKET])
# check for sys/sysmacros.h
dnl Check for sys/sysmacros.h
AC_CHECK_HEADERS([sys/sysmacros.h])
# check for poll.h
dnl Check for poll.h
AC_CHECK_HEADERS([poll.h])

View File

@ -71,7 +71,7 @@
#include <sys/mkdev.h>
#endif
#ifdef MAJOR_IN_SYSMACROS
#ifdef HAVE_SYS_SYSMACROS_H
#include <sys/sysmacros.h>
#endif