examples/netmap_compat: fix build on Suse 11
authorMichael Qiu <michael.qiu@intel.com>
Fri, 11 Dec 2015 06:36:33 +0000 (14:36 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sat, 12 Dec 2015 21:34:43 +0000 (22:34 +0100)
commit248f9319f7b49540392b193cbf0c79f74d1afe0e
tree21d556cdea2cee486c6aee83dca73b0a8c811009
parentde186103dacab38c4cb38af6c5665134ec183b37
examples/netmap_compat: fix build on Suse 11

 examples/netmap_compat/bridge/../lib/compat_netmap.c:880:41:
 error: ‘POLLRDNORM’ undeclared (first use in this function)

The root casue is POLLRDNORM is more-or-less nonstandard, and it
depends on macro "__USE_XOPEN".

In suse11 sp3, POLLRDNORM will not be defined because "__USE_XOPEN"
issue.

This patch add check if it is not defined, define it.

Fixes: 06371afe394d (examples/netmap_compat: import netmap compatibility example)

Signed-off-by: Michael Qiu <michael.qiu@intel.com>
examples/netmap_compat/lib/compat_netmap.c