summaryrefslogtreecommitdiffstats
path: root/main.cc
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 06:45:07 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 06:45:07 +0000
commitcc61e405e37aa8d68feb6b8550089d1a8f8c1307 (patch)
treec2e0f6f33d11783cd31ca51dd4b2d2d46977c836 /main.cc
parentAdding debian version 0.1-1. (diff)
downloadlzd-cc61e405e37aa8d68feb6b8550089d1a8f8c1307.tar.xz
lzd-cc61e405e37aa8d68feb6b8550089d1a8f8c1307.zip
Merging upstream version 0.2.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r--main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cc b/main.cc
index e9c16a9..bba5c6a 100644
--- a/main.cc
+++ b/main.cc
@@ -9,7 +9,7 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/*
- Return values: 0 for a normal exit, 1 for environmental problems
+ Exit status: 0 for a normal exit, 1 for environmental problems
(file not found, invalid flags, I/O errors, etc), 2 to indicate a
corrupt or invalid input file.
*/
@@ -22,6 +22,7 @@
#include <stdint.h>
#include <unistd.h>
#if defined(__MSVCRT__) || defined(__OS2__)
+#include <fcntl.h>
#include <io.h>
#endif