From 0606a0f4a24b6864334e135654cc4c1290d6aaad Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 6 Oct 2013 15:45:22 +0200 Subject: [PATCH] mdocml: refresh config.h and README.DRAGONFLY --- contrib/mdocml/README.DRAGONFLY | 20 ++++++++++++-------- contrib/mdocml/config.h | 18 ++++++++---------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/contrib/mdocml/README.DRAGONFLY b/contrib/mdocml/README.DRAGONFLY index e40aa88aba..7bf783e5d0 100644 --- a/contrib/mdocml/README.DRAGONFLY +++ b/contrib/mdocml/README.DRAGONFLY @@ -1,10 +1,14 @@ -Original source is availale from: -http://mdocml.bsd.lv/snapshots/mdocml.tar.gz +MDOCML 1.12.2 +============= -This source is used in: - lib/libmandoc - usr.bin/mandoc +Original source is available from: +http://mdocml.bsd.lv/snapshots/ -Modified files: - config.h autogenerated file; OS name and version string - msec.in proper DragonFly manual section titles +file = mdocml-1.12.2.tar.gz +date = 5 October 2013 +size = 286400 +sha1 = 6a86cc4f373bcc51aa8bf1a7499db368e977a166 + +Local modifications applied to the following files: + config.h + msec.in diff --git a/contrib/mdocml/config.h b/contrib/mdocml/config.h index e58c210ea7..fada38bf51 100644 --- a/contrib/mdocml/config.h +++ b/contrib/mdocml/config.h @@ -13,8 +13,7 @@ #define HAVE_MMAP #define HAVE_STRLCPY -/* local DragonFly modifications */ -#define VERSION "1.12.1" +#define VERSION "1.12.2" #define OSNAME "DragonFly 3.5" #include @@ -34,14 +33,13 @@ # endif #endif -#if defined(__APPLE__) -# define htobe32(x) OSSwapHostToBigInt32(x) -# define betoh32(x) OSSwapBigToHostInt32(x) -# define htobe64(x) OSSwapHostToBigInt64(x) -# define betoh64(x) OSSwapBigToHostInt64(x) -#elif defined(__linux__) -# define betoh32(x) be32toh(x) -# define betoh64(x) be64toh(x) +#ifndef HAVE_BETOH64 +# if defined(__APPLE__) +# define betoh64(x) OSSwapBigToHostInt64(x) +# define htobe64(x) OSSwapHostToBigInt64(x) +# else +# define betoh64(x) be64toh(x) +# endif #endif #ifndef HAVE_STRLCAT -- 2.41.0