linux: Apply v2 version of patch for CLOEXEC changes
authorChris Dickens <christopher.a.dickens@gmail.com>
Mon, 27 Mar 2017 03:19:40 +0000 (20:19 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Mon, 27 Mar 2017 03:25:27 +0000 (20:25 -0700)
commitbeb0d61b92fc0979dd1d874e642f1fa7bdb89b51
tree8b75da9bd3f3f758a36ef50bfe744b06109aad6f
parent871eb299b989bc0714391804a9d2fdb145a32ff5
linux: Apply v2 version of patch for CLOEXEC changes

Somehow I managed to push v1 of the patch, which didn't handle older
versions of the kernel or C library that don't support the O_CLOEXEC
flag (suggested by Tim Roberts). This commit amends the original
changes in aa73b2ec and provides this backwards compatibility.

Closes #286

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/linux_usbfs.c
libusb/version_nano.h