summaryrefslogtreecommitdiff
path: root/glib/gstdio.h
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-09-12 12:12:27 +0100
committerPhilip Withnall <withnall@endlessm.com>2017-09-12 12:12:27 +0100
commit39469aa7bbccdd7b0526785612295a1534767807 (patch)
treed3bd26edead14875607b15c3f61d3e98eb8eaca3 /glib/gstdio.h
parent54e3ed17f05f3bb2843024a828ba0591c34dcff4 (diff)
downloadglib-39469aa7bbccdd7b0526785612295a1534767807.tar.gz
Revert "gstdio: #include fcntl.h on UNIX in gstdio.h"
This reverts commit 6f8073d44ab02e9d641ccbe8c2640796ca1456ca. As per further discussion on bug #781598, we can’t do this in GLib, since fcntl.h is not guaranteed to be present on all Unix systems. Users of GLib *must* do a header check (for example, using AC_CHECK_HEADERS) and #include fcntl.h themselves.
Diffstat (limited to 'glib/gstdio.h')
-rw-r--r--glib/gstdio.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/glib/gstdio.h b/glib/gstdio.h
index 6b03b0118..15091b3e7 100644
--- a/glib/gstdio.h
+++ b/glib/gstdio.h
@@ -22,9 +22,6 @@
#include <glib/gprintf.h>
#include <sys/stat.h>
-#ifdef G_OS_UNIX
-#include <fcntl.h>
-#endif
G_BEGIN_DECLS