Revert "gstdio: #include fcntl.h on UNIX in gstdio.h"

This reverts commit 6f8073d44a.

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.
This commit is contained in:
Philip Withnall 2017-09-12 12:12:27 +01:00
parent 54e3ed17f0
commit 39469aa7bb

View File

@ -22,9 +22,6 @@
#include <glib/gprintf.h>
#include <sys/stat.h>
#ifdef G_OS_UNIX
#include <fcntl.h>
#endif
G_BEGIN_DECLS