aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/aout/aout64.h2
-rw-r--r--include/binary-io.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/aout/aout64.h b/include/aout/aout64.h
index a85a801..dbe25ef 100644
--- a/include/aout/aout64.h
+++ b/include/aout/aout64.h
@@ -43,7 +43,7 @@ struct external_exec
/* Magic numbers for a.out files. */
-#if ARCH_SIZE==64
+#if defined(ARCH_SIZE) && ARCH_SIZE == 64
#define OMAGIC 0x1001 /* Code indicating object file. */
#define ZMAGIC 0x1002 /* Code indicating demand-paged executable. */
#define NMAGIC 0x1003 /* Code indicating pure executable. */
diff --git a/include/binary-io.h b/include/binary-io.h
index 2f4be43..beeb0f7 100644
--- a/include/binary-io.h
+++ b/include/binary-io.h
@@ -35,7 +35,7 @@
# undef O_BINARY
# undef O_TEXT
#endif
-#if O_BINARY
+#if defined(O_BINARY) && O_BINARY
# if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__
# include <io.h> /* declares setmode() */
# else