Signed-off-by: Alon Bar-Lev <alon.bar...@gmail.com>
---
 configure.ac          |   11 +++++++++++
 src/openvpn/syshead.h |    7 -------
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/configure.ac b/configure.ac
index 4592727..6f6a1f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -519,6 +519,17 @@ AC_CHECK_DECLS(
        ]]
 )

+AC_CHECK_DECLS(
+       [O_BINARY],
+       ,
+       [AC_DEFINE([O_BINARY], [0], [O_BINARY replacement])],
+       [[
+               #ifdef HAVE_FCNTL_H
+               #include <fcntl.h>
+               #endif
+       ]]
+)
+
 AC_FUNC_FORK

 AC_CHECK_FUNCS([ \
diff --git a/src/openvpn/syshead.h b/src/openvpn/syshead.h
index c5dbac6..91a23d3 100644
--- a/src/openvpn/syshead.h
+++ b/src/openvpn/syshead.h
@@ -439,13 +439,6 @@
 #endif

 /*
- * Does this OS draw a distinction between binary and ascii files?
- */
-#ifndef O_BINARY
-#define O_BINARY 0
-#endif
-
-/*
  * Define a boolean value based
  * on Win32 status.
  */
-- 
1.7.3.4


Reply via email to