[vte/vte-0-34] utils: Remove unneeded define



commit 4e2f4a175b8cf44621832db1cb3d55f48145e272
Author: Christian Persch <chpe gnome org>
Date:   Sat Oct 12 12:14:09 2013 +0200

    utils: Remove unneeded define
    
    This part of the code is linux only anyway.

 src/vte.c      |    4 ++--
 src/vteutils.c |    6 +-----
 2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 0ad759d..0f58d12 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -13162,8 +13162,8 @@ vte_terminal_set_scroll_on_keystroke(VteTerminal *terminal, gboolean scroll)
  * @terminal: a #VteTerminal
  * @scroll:
  *
- * Since: 0.36
- * Deprecated: 0.36: This function does nothing.
+ * Since: 0.34.9
+ * Deprecated: 0.34.9: This function does nothing.
  */
 void
 vte_terminal_set_alternate_screen_scroll(VteTerminal *terminal, gboolean scroll)
diff --git a/src/vteutils.c b/src/vteutils.c
index feea47e..1371cb2 100644
--- a/src/vteutils.c
+++ b/src/vteutils.c
@@ -30,10 +30,6 @@
 
 #include <glib.h>
 
-#ifndef O_BINARY
-#define O_BINARY 0
-#endif
-
 /* Temporary define until glibc release catches up */
 #ifdef __linux__
 #ifndef O_TMPFILE
@@ -52,7 +48,7 @@ _vte_mkstemp (void)
 
 #ifdef O_TMPFILE
         fd = open (g_get_tmp_dir (),
-                   O_TMPFILE | O_EXCL | O_RDWR | O_BINARY | O_NOATIME,
+                   O_TMPFILE | O_EXCL | O_RDWR | O_NOATIME,
                    0600);
         if (fd != -1)
                 goto done;


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