]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Minor fixes to build on Windows.
authorTim Kientzle <kientzle@gmail.com>
Mon, 10 Nov 2008 19:03:49 +0000 (14:03 -0500)
committerTim Kientzle <kientzle@gmail.com>
Mon, 10 Nov 2008 19:03:49 +0000 (14:03 -0500)
Submitted by: Ivailo Petrov

SVN-Revision: 253

libarchive/archive_platform.h
libarchive/archive_windows.h

index b39b302fd16e00cbb61010c81e355d99cdcfd6a2..8a093c1df2973e7adb09e4589b7fa85658ffe253 100644 (file)
 /* archive.h and archive_entry.h require this. */
 #define        __LIBARCHIVE_BUILD 1
 
-#ifdef _WIN32
-#include "config_windows.h"
-#include "archive_windows.h"
-#elif defined(PLATFORM_CONFIG_H)
+#if defined(PLATFORM_CONFIG_H)
 /* Use hand-built config.h in environments that need it. */
 #include PLATFORM_CONFIG_H
 #elif defined(HAVE_CONFIG_H)
index 56423d865814674ff3eceadc3041964fd3799530..5d5d2d61e0139273ef7f734dcb2571960636ce78 100644 (file)
 
 //#define      EFTYPE 7
 
+#if !defined(STDIN_FILENO)
+#define STDIN_FILENO 0
+#endif
+
+#if !defined(STDOUT_FILENO)
+#define STDOUT_FILENO 1
+#endif
+
+#if !defined(STDERR_FILENO)
+#define STDERR_FILENO 2
+#endif
+
+
 #if defined(_MSC_VER)
 /* TODO: Fix the code, don't suppress the warnings. */
 #pragma warning(disable:4244)   /* 'conversion' conversion from 'type1' to 'type2', possible loss of data */