summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-14 04:13:30 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-14 04:13:30 +0000
commitb48b3766c360b23e26a10149be01193804cfa99b (patch)
tree6396866953e8c75d5ae507acdac7490c33e7ec1d
parentb420a48fd0fb421dd84caf9dc10cbd6192ca7509 (diff)
downloadmandoc-b48b3766c360b23e26a10149be01193804cfa99b.tar.gz
Cygwin support; from Yaakov Selkowitz,
https://sourceforge.net/p/cygwin-ports/mdocml/ci/master/tree/
-rw-r--r--apropos_db.c4
-rw-r--r--mandocdb.c4
-rw-r--r--test-betoh64.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/apropos_db.c b/apropos_db.c
index df9fa98f..421c54d7 100644
--- a/apropos_db.c
+++ b/apropos_db.c
@@ -31,7 +31,7 @@
#if defined(__APPLE__)
# include <libkern/OSByteOrder.h>
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__CYGWIN__)
# include <endian.h>
#elif defined(__sun)
# include <sys/byteorder.h>
@@ -39,7 +39,7 @@
# include <sys/endian.h>
#endif
-#if defined(__linux__) || defined(__sun)
+#if defined(__linux__) || defined(__CYGWIN__) || defined(__sun)
# include <db_185.h>
#else
# include <db.h>
diff --git a/mandocdb.c b/mandocdb.c
index fe3abdfe..53bfbd19 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -34,7 +34,7 @@
#if defined(__APPLE__)
# include <libkern/OSByteOrder.h>
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__CYGWIN__)
# include <endian.h>
#elif defined(__sun)
# include <sys/byteorder.h>
@@ -43,7 +43,7 @@
# include <sys/endian.h>
#endif
-#if defined(__linux__) || defined(__sun)
+#if defined(__linux__) || defined(__CYGWIN__) || defined(__sun)
# include <db_185.h>
#else
# include <db.h>
diff --git a/test-betoh64.c b/test-betoh64.c
index d33f4017..90dc84fe 100644
--- a/test-betoh64.c
+++ b/test-betoh64.c
@@ -1,6 +1,6 @@
#include <sys/types.h>
-#if defined(__linux__)
+#if defined(__linux__) || defined(__CYGWIN__)
# include <endian.h>
#elif defined(__APPLE__)
# include <libkern/OSByteOrder.h>