[Buildroot] [PATCH 3 of 3] libglib2: build fix for RHEL6 hosts (GCC 4.4.7)

Hollis Blanchard hollis_blanchard at mentor.com
Thu Jul 19 17:20:44 UTC 2018


Signed-off-by: Hollis Blanchard <hollis_blanchard at mentor.com>

diff --git a/package/libglib2/0004-define-F_SETPIPE_SZ.patch b/package/libglib2/0004-define-F_SETPIPE_SZ.patch
new file mode 100644
--- /dev/null
+++ b/package/libglib2/0004-define-F_SETPIPE_SZ.patch
@@ -0,0 +1,17 @@
+On RHEL6 hosts, fcntl.h doesn't define F_SETPIPE_SZ or F_GETPIPE_SZ.
+
+Signed-off-by: Hollis Blanchard <hollis_blanchard at mentor.com>
+
+--- libglib2-2.56.1/gio/gfile.c.orig	2018-07-12 11:31:13.862255422 -0700
++++ libglib2-2.56.1/gio/gfile.c	2018-07-12 12:06:49.984118708 -0700
+@@ -34,6 +34,10 @@
+ #include <sys/stat.h>
+ #include <unistd.h>
+ #include <fcntl.h>
++#ifndef F_SETPIPE_SZ
++#define F_SETPIPE_SZ 1031
++#define F_GETPIPE_SZ 1032
++#endif
+ #include <errno.h>
+ #endif
+ 





More information about the buildroot mailing list