X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=acinclude.m4;h=eadc9a76b74b6d1f43fb28122ed438fb7a1059c5;hb=825da1c6d1c7b9bc5128d7588b8bad6efaae650e;hp=34634a2b792fc95db1e79a4aaf6228ccd44ef176;hpb=42d5dd9595cce35a8825a20be7d71a3a8f6f5640;p=sliver-openvswitch.git diff --git a/acinclude.m4 b/acinclude.m4 index 34634a2b7..eadc9a76b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -264,6 +264,8 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [ [OVS_DEFINE([HAVE_BOOL_TYPE])]) OVS_GREP_IFELSE([$KSRC/include/linux/types.h], [__wsum], [OVS_DEFINE([HAVE_CSUM_TYPES])]) + OVS_GREP_IFELSE([$KSRC/include/uapi/linux/types.h], [__wsum], + [OVS_DEFINE([HAVE_CSUM_TYPES])]) OVS_GREP_IFELSE([$KSRC/include/net/checksum.h], [csum_replace4]) OVS_GREP_IFELSE([$KSRC/include/net/checksum.h], [csum_unfold]) @@ -306,7 +308,8 @@ AC_DEFUN([OVS_CHECK_IF_PACKET], dnl Checks for net/if_dl.h. dnl -dnl (We use this as a proxy for checking whether we're building on FreeBSD.) +dnl (We use this as a proxy for checking whether we're building on FreeBSD +dnl or NetBSD.) AC_DEFUN([OVS_CHECK_IF_DL], [AC_CHECK_HEADER([net/if_dl.h], [HAVE_IF_DL=yes], @@ -316,7 +319,7 @@ AC_DEFUN([OVS_CHECK_IF_DL], AC_DEFINE([HAVE_IF_DL], [1], [Define to 1 if net/if_dl.h is available.]) - # On FreeBSD we use libpcap to access network devices. + # On these platforms we use libpcap to access network devices. AC_SEARCH_LIBS([pcap_open_live], [pcap]) fi])