diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-14 04:13:30 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-14 04:13:30 +0000 |
commit | bbc1cc9c5e6f47b98e30f1bbc039bc390922804e (patch) | |
tree | 5c0a431384bc9570aaca25d67d18d19c004c047b | |
parent | 65e93d2bb2b1e6e21c88c607d011bc98f80b975f (diff) | |
download | mandoc-bbc1cc9c5e6f47b98e30f1bbc039bc390922804e.tar.gz mandoc-bbc1cc9c5e6f47b98e30f1bbc039bc390922804e.tar.zst mandoc-bbc1cc9c5e6f47b98e30f1bbc039bc390922804e.zip |
Cygwin support; from Yaakov Selkowitz,
https://sourceforge.net/p/cygwin-ports/mdocml/ci/master/tree/
-rw-r--r-- | apropos_db.c | 6 | ||||
-rw-r--r-- | mandocdb.c | 6 | ||||
-rw-r--r-- | test-betoh64.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/apropos_db.c b/apropos_db.c index 125d0aa0..00570663 100644 --- a/apropos_db.c +++ b/apropos_db.c @@ -1,4 +1,4 @@ -/* $Id: apropos_db.c,v 1.32.2.7 2014/08/11 00:31:13 schwarze Exp $ */ +/* $Id: apropos_db.c,v 1.32.2.8 2014/08/14 04:13:30 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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> @@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.49.2.17 2014/08/11 00:31:13 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.49.2.18 2014/08/14 04:13:30 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org> @@ -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> |