Print this page
3373 gcc >= 4.5 concerns about offsetof()
Portions contributed by: Igor Pashev <pashev.igor@gmail.com>
*** 32,49 ****
#include <sys/types.h>
#include <sys/kstat.h>
#include <sys/stream.h>
#include <sys/ethernet.h>
#include <sys/hypervisor.h>
#include <xen/public/io/netif.h>
#ifdef __cplusplus
extern "C" {
#endif
! #define NET_TX_RING_SIZE __RING_SIZE((netif_tx_sring_t *)0, PAGESIZE)
! #define NET_RX_RING_SIZE __RING_SIZE((netif_rx_sring_t *)0, PAGESIZE)
#define XNBMAXPKT 1500 /* MTU size */
/* DEBUG flags */
#define XNBDDI 0x01
--- 32,50 ----
#include <sys/types.h>
#include <sys/kstat.h>
#include <sys/stream.h>
#include <sys/ethernet.h>
#include <sys/hypervisor.h>
+ #include <sys/sysmacros.h>
#include <xen/public/io/netif.h>
#ifdef __cplusplus
extern "C" {
#endif
! #define NET_TX_RING_SIZE __CONST_RING_SIZE(netif_tx, PAGESIZE)
! #define NET_RX_RING_SIZE __CONST_RING_SIZE(netif_rx, PAGESIZE)
#define XNBMAXPKT 1500 /* MTU size */
/* DEBUG flags */
#define XNBDDI 0x01