linux: ensure the netlink socket is correctly opened with older Linux kernels
authorNathan Hjelm <hjelmn@me.com>
Thu, 8 Aug 2013 03:01:43 +0000 (21:01 -0600)
committerNathan Hjelm <hjelmn@me.com>
Thu, 8 Aug 2013 03:01:43 +0000 (21:01 -0600)
commitb50a433c164996761344efb6c90594de7906fe56
treefa44e559b337b54ed6282eedae0b9d753651cef0
parentc848e5b72a1670a33eb84f210b951177a3de19e9
linux: ensure the netlink socket is correctly opened with older Linux kernels

It is possible for the extra socket flags (available from 2.6.27 on) to be
defined but not available. Check for this case and set the flags correctly
on the netlink socket.
libusb/os/linux_netlink.c
libusb/version_nano.h