mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Fix Android compilation
This commit is contained in:
parent
914a2eca55
commit
67c607cb32
3 changed files with 11 additions and 11 deletions
|
@ -4,7 +4,8 @@
|
|||
* libretroshare: retroshare core library *
|
||||
* *
|
||||
* Copyright (C) 2004-2006 Robert Fernie <retroshare@lunamutt.com> *
|
||||
* Copyright (C) 2015-2018 Gioacchino Mazzurco <gio@eigenlab.org> *
|
||||
* Copyright (C) 2015-2021 Gioacchino Mazzurco <gio@eigenlab.org> *
|
||||
* Copyright (C) 2021 Asociación Civil Altermundi <info@altermundi.net> *
|
||||
* *
|
||||
* This program is free software: you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU Lesser General Public License as *
|
||||
|
@ -30,14 +31,13 @@
|
|||
# include <android/api-level.h>
|
||||
#endif // def __ANDROID__
|
||||
|
||||
#include "pqi/pqinetwork.h"
|
||||
#include "util/rsnet.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <cerrno>
|
||||
#include <iostream>
|
||||
#include <stdio.h>
|
||||
#include <cstdio>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "pqi/pqinetwork.h"
|
||||
#include "util/rsnet.h"
|
||||
#include "util/rsdebug.h"
|
||||
#include "util/rsstring.h"
|
||||
#include "util/rsnet.h"
|
||||
|
@ -325,7 +325,7 @@ bool getLocalAddresses(std::vector<sockaddr_storage>& addrs)
|
|||
}
|
||||
free(adapter_addresses);
|
||||
#elif defined(__ANDROID__) && __ANDROID_API__ < 24
|
||||
foreach(QHostAddress qAddr, QNetworkInterface::allAddresses())
|
||||
for(auto& qAddr: QNetworkInterface::allAddresses())
|
||||
{
|
||||
sockaddr_storage tmpAddr;
|
||||
sockaddr_storage_clear(tmpAddr);
|
||||
|
|
|
@ -59,7 +59,7 @@ linux-* {
|
|||
mLibs += dl
|
||||
}
|
||||
|
||||
rs_deep_channels_index | rs_deep_files_index {
|
||||
rs_deep_channels_index | rs_deep_files_index | rs_deep_forums_index {
|
||||
mLibs += xapian
|
||||
win32-g++|win32-clang-g++:mLibs += rpcrt4
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue