aboutsummaryrefslogtreecommitdiff
path: root/src/xz/private.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-02-05 09:12:57 +0200
committerLasse Collin <lasse.collin@tukaani.org>2009-02-05 09:12:57 +0200
commit75905a9afc0ee89954ede7d08af70d1148bf0fd9 (patch)
treefc562f9890c63c4fa7087537941165393155af14 /src/xz/private.h
parentAnother utime() fix. (diff)
downloadxz-75905a9afc0ee89954ede7d08af70d1148bf0fd9.tar.xz
Various code cleanups the the xz command line tool.
It now builds with MinGW.
Diffstat (limited to 'src/xz/private.h')
-rw-r--r--src/xz/private.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/xz/private.h b/src/xz/private.h
index 3c8b4e05..21c3559a 100644
--- a/src/xz/private.h
+++ b/src/xz/private.h
@@ -17,9 +17,6 @@
//
///////////////////////////////////////////////////////////////////////////////
-#ifndef PRIVATE_H
-#define PRIVATE_H
-
#include "sysdefs.h"
#include "mythread.h"
#include "lzma.h"
@@ -41,6 +38,18 @@
# define N_(msgid1, msgid2, n) ((n) == 1 ? (msgid1) : (msgid2))
#endif
+#ifndef STDIN_FILENO
+# define STDIN_FILENO (fileno(stdin))
+#endif
+
+#ifndef STDOUT_FILENO
+# define STDOUT_FILENO (fileno(stdout))
+#endif
+
+#ifndef STDERR_FILENO
+# define STDERR_FILENO (fileno(stderr))
+#endif
+
#include "main.h"
#include "process.h"
#include "message.h"
@@ -48,7 +57,6 @@
#include "hardware.h"
#include "io.h"
#include "options.h"
+#include "signals.h"
#include "suffix.h"
#include "util.h"
-
-#endif