summaryrefslogtreecommitdiff
path: root/glib/gstdio.h
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2017-09-12 10:49:43 +0100
committerPhilip Withnall <withnall@endlessm.com>2017-09-12 11:10:54 +0100
commit6f8073d44ab02e9d641ccbe8c2640796ca1456ca (patch)
tree50e9369e6915e54fd327d3b5de4262c359ad3f2c /glib/gstdio.h
parent7b9503a4f866ce915ad0dfea607f3b734c685e98 (diff)
downloadglib-6f8073d44ab02e9d641ccbe8c2640796ca1456ca.tar.gz
gstdio: #include fcntl.h on UNIX in gstdio.h
https://bugzilla.gnome.org/show_bug.cgi?id=781598
Diffstat (limited to 'glib/gstdio.h')
-rw-r--r--glib/gstdio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/glib/gstdio.h b/glib/gstdio.h
index 15091b3e7..6b03b0118 100644
--- a/glib/gstdio.h
+++ b/glib/gstdio.h
@@ -22,6 +22,9 @@
#include <glib/gprintf.h>
#include <sys/stat.h>
+#ifdef G_OS_UNIX
+#include <fcntl.h>
+#endif
G_BEGIN_DECLS