blob: ff96e9f8df783aebf10af82be311c26a940c754d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Kenneth Myhra <kennethmyhra@gmail.com>
Date: Thu, 12 Aug 2021 20:59:25 +0200
Subject: [PATCH] ntohl/ntohs is located in 'arpa/inet.h'
In Serenity ntohl/ntohs is located in arpa/inet.h, other stuff glib
needs is included in 'netinet/in.h'.
---
gio/xdgmime/xdgmimecache.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gio/xdgmime/xdgmimecache.c b/gio/xdgmime/xdgmimecache.c
index f80f122..45220cc 100644
--- a/gio/xdgmime/xdgmimecache.c
+++ b/gio/xdgmime/xdgmimecache.c
@@ -38,7 +38,12 @@
#include <fnmatch.h>
#include <assert.h>
+#ifdef __serenity__
+#include <arpa/inet.h> /* for ntohl/ntohs */
+#include <netinet/in.h>
+#else
#include <netinet/in.h> /* for ntohl/ntohs */
+#endif
#ifdef HAVE_MMAP
#include <sys/mman.h>
|