File 3061-Fix-iOS-build.patch of Package erlang
From b5551600082fda193fe85f7feb5bd69bcc1f858c Mon Sep 17 00:00:00 2001
From: Dominic Letz <dominic@diode.io>
Date: Fri, 26 Nov 2021 13:51:54 +0100
Subject: [PATCH] Fix iOS build
---
erts/emulator/nifs/common/socket_util.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/erts/emulator/nifs/common/socket_util.c b/erts/emulator/nifs/common/socket_util.c
index 94a5e3e3dc..2a491c3e95 100644
--- a/erts/emulator/nifs/common/socket_util.c
+++ b/erts/emulator/nifs/common/socket_util.c
@@ -35,7 +35,10 @@
#include <stddef.h>
#include <sys/types.h>
#include <sys/socket.h>
+
+#ifndef __IOS__
#include <net/if_arp.h>
+#endif
#include "socket_int.h"
#include "sys.h"
--
2.31.1