Browse Source

fix: replace <arpa/inet.h> with platform_compat.h in chatgui (cross-platform ntohs)

topo_upd
Evgeny 3 months ago
parent
commit
93f265c0a9
  1. 2
      tools/chatgui/src/accountlist.cpp
  2. 2
      tools/chatgui/src/nodespage.cpp

2
tools/chatgui/src/accountlist.cpp

@ -5,7 +5,7 @@
#include <QLabel>
#include <QDateTime>
#include <QFont>
#include <arpa/inet.h>
#include "../../../lib/platform_compat.h"
static QString shortenKey(const QByteArray& key) {
if (key.size() < 8) return key.toHex(' ').toUpper();

2
tools/chatgui/src/nodespage.cpp

@ -10,7 +10,7 @@
#include <QFont>
#include <cstring>
#include <arpa/inet.h>
#include "../../../lib/platform_compat.h"
static QString hex4(uint32_t v) {
return QString("%1").arg(v, 4, 16, QChar('0')).toUpper();

Loading…
Cancel
Save