Skip to content
Snippets Groups Projects
Commit ae4dbefb authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

Linux build fixes

parent dccfb919
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,21 @@ ifeq ($(UNAME), Darwin)
-DLIBUSB_CALL= -DDEFAULT_VISIBILITY= -DHAVE_GETTIMEOFDAY
endif
ifeq ($(UNAME), Linux)
# Linux
C_FILES += \
libusbx/libusb/os/linux_usbfs.c \
libusbx/libusb/os/linux_netlink.c \
libusbx/libusb/os/poll_posix.c \
libusbx/libusb/os/threads_posix.c
LIBS += -lpthread -lrt
CPPFLAGS += -DOS_LINUX -DTHREADS_POSIX -DPOLL_NFDS_TYPE=nfds_t \
-DLIBUSB_CALL= -DDEFAULT_VISIBILITY= -DHAVE_GETTIMEOFDAY -DHAVE_POLL_H \
-DHAVE_ASM_TYPES_H -DHAVE_SYS_SOCKET_H -DHAVE_LINUX_NETLINK_H -DHAVE_LINUX_FILTER_H
endif
ifneq ("$(MINGW)", "")
# Windows
......
#ifndef TIMESPEC_TO_TIMEVAL
#define TIMESPEC_TO_TIMEVAL(tv, ts) \
do { \
(tv)->tv_sec = (ts)->tv_sec; \
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
} while (0)
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment