Skip to content

Commit

Permalink
Fix build on Ubuntu 18.04
Browse files Browse the repository at this point in the history
  • Loading branch information
cozycactus committed May 8, 2023
1 parent e06626d commit e93c667
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

add_library(rx888 SHARED librx888.c)
target_compile_options(rx888 PRIVATE -fPIC)

target_link_libraries(rx888 ${LIBUSB_LINK_LIBRARIES})

target_link_libraries(rx888 PkgConfig::LIBUSB)
Expand Down
2 changes: 2 additions & 0 deletions src/rx888_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include <sys/time.h>
#else
#include <time.h>
#include <sys/time.h>

#endif

#ifndef _WIN32
Expand Down

0 comments on commit e93c667

Please sign in to comment.