fix: replace <arpa/inet.h> with platform_compat.h in chatgui (cross-platform ntohs)
This commit is contained in:
1 parent
b8e7139b61
commit
1e0d9779d6
2 files changed
+2
-2
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user