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



commit 39469aa7bbccdd7b0526785612295a1534767807
Author: Philip Withnall <withnall endlessm com>
Date:   Tue Sep 12 12:12:27 2017 +0100

    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.

 glib/gstdio.h |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/glib/gstdio.h b/glib/gstdio.h
index 6b03b01..15091b3 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
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]