Skip to content

Commit

Permalink
Fixes for non-Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SDRplay committed Mar 23, 2020
1 parent 0523cd2 commit b220fb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FindLibSDRplay.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ if(NOT LIBSDRPLAY_FOUND)
SET( EX_PLATFORM_NAME "x86" )
endif( CMAKE_SIZEOF_VOID_P EQUAL 8 )

find_path(LIBSDRPLAY_INCLUDE_DIRS NAMES mir_sdr.h
find_path(LIBSDRPLAY_INCLUDE_DIRS NAMES sdrplay_api.h
PATHS
"${SDRPLAY_API_DIR}/inc"
)

find_library(LIBSDRPLAY_LIBRARIES NAMES mir_sdr_api.lib
find_library(LIBSDRPLAY_LIBRARIES NAMES sdrplay_api.lib
PATHS
"${SDRPLAY_API_DIR}/${EX_PLATFORM_NAME}"
)
ELSE()
find_path(LIBSDRPLAY_INCLUDE_DIRS NAMES mirsdrapi-rsp.h
find_path(LIBSDRPLAY_INCLUDE_DIRS NAMES sdrplay_api.h
PATHS
/usr/include
/usr/local/include
)

find_library(LIBSDRPLAY_LIBRARIES NAMES mirsdrapi-rsp
find_library(LIBSDRPLAY_LIBRARIES NAMES sdrplay_api
PATHS
/usr/lib
/usr/local/lib
Expand Down
6 changes: 6 additions & 0 deletions rsp_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
#include <sys/time.h>
#include <netinet/in.h>
#include <fcntl.h>
#define CTRL_C_EVENT 0
#define CTRL_BREAK_EVENT 1
#define CTRL_CLOSE_EVENT 2
#include <stdbool.h>
#define FALSE false
#define TRUE true
#else
#include <winsock2.h>
#include "getopt/getopt.h"
Expand Down

0 comments on commit b220fb4

Please sign in to comment.