mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
Removed RPI definition
This was a long-obsolete fix for things that don't matter anymore.
This commit is contained in:
parent
26ecf23ad8
commit
a45bec7c4f
|
@ -140,12 +140,6 @@ if(CMAKE_BUILD_TYPE MATCHES "[Dd][Ee][Bb][Uu][Gg]")
|
|||
link_libraries( ${DEBUG_FLAGS} )
|
||||
endif(CMAKE_BUILD_TYPE MATCHES "[Dd][Ee][Bb][Uu][Gg]")
|
||||
|
||||
# Add non-386 target-specific options here
|
||||
if(NON_PC_TARGET)
|
||||
add_definitions(-DRPI)
|
||||
set(WITH_STATIC ON)
|
||||
endif(NON_PC_TARGET)
|
||||
|
||||
if(WITH_SHELLHOOKS)
|
||||
add_definitions(-DENABLE_SHELLHOOKS)
|
||||
endif(WITH_SHELLHOOKS)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#if defined(RPI) || defined(ANDROID) || NETNS == 0
|
||||
#if defined(ANDROID) || NETNS == 0
|
||||
|
||||
#else
|
||||
#include <asm/types.h>
|
||||
|
|
|
@ -111,7 +111,7 @@ namespace llarp
|
|||
else
|
||||
return stream;
|
||||
ss << std::string("/");
|
||||
#if defined(ANDROID) || defined(RPI)
|
||||
#if defined(ANDROID)
|
||||
snprintf(tmp, sizeof(tmp), "%zu", llarp::bits::count_array_bits(netmask.s6_addr));
|
||||
ss << tmp;
|
||||
#else
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace llarp
|
|||
auto tid = std::this_thread::get_id();
|
||||
std::hash<std::thread::id> h;
|
||||
uint16_t id = h(tid) % 1000;
|
||||
#if defined(ANDROID) || defined(RPI)
|
||||
#if defined(ANDROID)
|
||||
char buff[8] = {0};
|
||||
snprintf(buff, sizeof(buff), "%u", id);
|
||||
return buff;
|
||||
|
|
Loading…
Reference in a new issue