Include sys/filio.h explicitly as solaris doesn't define BSD_COMP and
thus doesn't pull this header via sys/ioctl.h. Needed for FIONREAD.
AM_INIT_AUTOMAKE([foreign])
AC_CANONICAL_HOST
-case $host in
- *darwin*)
- RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
- ;;
- *)
- ;;
-esac
-
-AC_SUBST(RPCGENFLAGS)
-
# Work around stupid autoconf default cflags. pt 1
SAVE_CFLAGS="x${CFLAGS}"
fi
AC_SUBST(MAYBE_EXAMPLES)
+case $host in
+ *darwin*)
+ RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
+ ;;
+ *solaris*)
+ AC_CHECK_HEADERS([sys/filio.h])
+ ;;
+ *)
+ ;;
+esac
+
+AC_SUBST(RPCGENFLAGS)
+
#output
AC_CONFIG_FILES([Makefile]
[include/Makefile]
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <rpc/rpc.h>
#include <rpc/xdr.h>
#include <arpa/inet.h>
+#ifdef HAVE_SYS_FILIO_H
+#include <sys/filio.h>
+#endif
#include <sys/ioctl.h>
#include "libnfs.h"
#include "libnfs-raw.h"