summaryrefslogtreecommitdiff
path: root/gio/gioprivate.h
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-29 10:22:04 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-29 10:22:04 +0900
commitd9b5cb190cbe7b1d1486e0181e4d3b01e9552354 (patch)
tree0c96e63a80686186fca81d4c1ed68807922428e2 /gio/gioprivate.h
parentac2d6c432f28bcb3835093099e344bceaba4363e (diff)
downloadglib-d9b5cb190cbe7b1d1486e0181e4d3b01e9552354.tar.gz
glib-d9b5cb190cbe7b1d1486e0181e4d3b01e9552354.tar.bz2
glib-d9b5cb190cbe7b1d1486e0181e4d3b01e9552354.zip
Imported Upstream version 2.64.5upstream/2.64.5
Diffstat (limited to 'gio/gioprivate.h')
-rw-r--r--gio/gioprivate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gio/gioprivate.h b/gio/gioprivate.h
index 2bc54e49b..608d912c0 100644
--- a/gio/gioprivate.h
+++ b/gio/gioprivate.h
@@ -43,6 +43,10 @@ void g_socket_connection_set_cached_remote_address (GSocketConnection *connectio
#define G_IOV_MAX IOV_MAX
#elif defined(UIO_MAXIOV)
#define G_IOV_MAX UIO_MAXIOV
+#elif defined(__APPLE__)
+/* For macOS/iOS, UIO_MAXIOV is documented in writev(2), but <sys/uio.h>
+ * only declares it if defined(KERNEL) */
+#define G_IOV_MAX 512
#else
/* 16 is the minimum value required by POSIX */
#define G_IOV_MAX 16