mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 12:41:50 +01:00
Define G_IOV_MAX to 512 on macOS/iOS
For macOS/iOS, UIO_MAXIOV is documented in writev(2), but <sys/uio.h> only declares it if defined(KERNEL) Inspired by a GStreamer MR by Jim Mason https://gitlab.freedesktop.org/gstreamer/gstreamer/merge_requests/277
This commit is contained in:
parent
f944049869
commit
81f614533d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user