netdev-linux: Fix broken build on RHEL 6.
authorBen Pfaff <blp@nicira.com>
Thu, 22 Sep 2011 18:54:22 +0000 (11:54 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 22 Sep 2011 18:54:22 +0000 (11:54 -0700)
commitbb7d0e2287b7f1a593903d06c46a4d08b83b7b80
tree695f78462a1a6f321dd77c4b0d9fc611d453e71f
parenta838c4fe1d5c4e39e52915e6c934c8dca36d17e6
netdev-linux: Fix broken build on RHEL 6.

Commit 00fa9d37c2b "Do not include net/ethernet.h and linux/if_tunnel.h"
introduced a compile error on RHEL 6:

lib/netdev-linux.c: In function 'netdev_linux_listen':
lib/netdev-linux.c:734: error: 'ETH_P_ALL' undeclared (first use in this
function)

This fixes the problem.

I verified that the Android NDK r6b mentioned in the previous commit
contains a file named android-ndk-r6b/platforms/android-3/arch-x86/use/
linux/if_ether.h that defines ETH_P_ALL.  I didn't try building on that
platform.
lib/netdev-linux.c