An iOS code compatibility issue.
Some function, macro, header file just for macOS, not for iOS.
I can't fork the gitlab library currently, so I made a patch file.
diff --git a/glib/gspawn.c b/glib/gspawn.c
index 0a7bf0a71..25888b4e2 100644
--- a/glib/gspawn.c
+++ b/glib/gspawn.c
@@ -71,9 +71,11 @@
#include "glib-unix.h"
#ifdef __APPLE__
+#ifdef TARGET_OS_MAC
#include <libproc.h>
#include <sys/proc_info.h>
#endif
+#endif
#define INHERITS_OR_NULL_STDIN (G_SPAWN_STDIN_FROM_DEV_NULL | G_SPAWN_CHILD_INHERITS_STDIN)
#define INHERITS_OR_NULL_STDOUT (G_SPAWN_STDOUT_TO_DEV_NULL | G_SPAWN_CHILD_INHERITS_STDOUT)
@@ -1535,6 +1537,7 @@ safe_fdwalk_with_invalid_fds (int (*cb)(void *data, int fd), void *data)
open_max = 4096;
#if defined(__APPLE__)
+#if defined(TARGET_OS_MAC)
/* proc_pidinfo isn't documented as async-signal-safe but looking at the implementation
* in the darwin tree here:
*
@@ -1562,6 +1565,7 @@ safe_fdwalk_with_invalid_fds (int (*cb)(void *data, int fd), void *data)
return res;
}
}
+#endif
#endif
for (fd = 0; fd < open_max; fd++)