libusb / libusb-cmake

CMake build system for libusb
https://github.com/libusb/libusb
GNU Lesser General Public License v2.1
26 stars 12 forks source link

Add `LIBUSB_ENABLE_UDEV` option #20

Closed ririyeye closed 8 months ago

ririyeye commented 8 months ago

there is no udev support in some embedded system , they need a option work without libudev and if we compile sys/socket.h we need to add -D_GNU_SOURCE according to stackoverflow

Youw commented 8 months ago

if we compile sys/socket.h we need to add -D_GNU_SOURCE according to stackoverflow

Is it causing a build issue? Which system/compiler?

In any case - lets not introduce two independent changes in one PR.

Youw commented 8 months ago

nice improvement overall, thanks

ririyeye commented 8 months ago

if we compile sys/socket.h we need to add -D_GNU_SOURCE according to stackoverflow

Is it causing a build issue? Which system/compiler?

In any case - lets not introduce two independent changes in one PR.

in linux-gcc

it may cause build err to linux_netlink.c

i figure out in autoconf , libusb will add _GNU_SOURCE in config.h file , and it add -DHAVE_CONFIG_H flags to include config.h so it works

Youw commented 8 months ago

i figure out in autoconf , libusb will add _GNU_SOURCE in config.h file , and it add -DHAVE_CONFIG_H flags to include config.h so it works

21