From 5e0424f17f23c24e82a4325ff81e7ef67ac1337a Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 18 Dec 2013 17:12:16 +0100 Subject: stream: move O_BINARY dummy definition --- osdep/io.h | 4 ++++ stream/stream.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/osdep/io.h b/osdep/io.h index aa20446210..9f715d904e 100644 --- a/osdep/io.h +++ b/osdep/io.h @@ -26,6 +26,10 @@ #include #include +#ifndef O_BINARY +#define O_BINARY 0 +#endif + // This is in POSIX.1-2008, but support outside of Linux is scarce. #ifndef O_CLOEXEC #define O_CLOEXEC 0 diff --git a/stream/stream.h b/stream/stream.h index e1dc2a91d0..7d10eccd28 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -30,10 +30,6 @@ #include "bstr/bstr.h" -#ifndef O_BINARY -#define O_BINARY 0 -#endif - enum streamtype { STREAMTYPE_GENERIC = 0, STREAMTYPE_FILE, -- cgit v1.2.3