diff options
author | 2013-10-02 21:03:26 +0000 | |
---|---|---|
committer | 2013-10-02 21:03:26 +0000 | |
commit | 25a40fb922bc3637838a5dd91407b306ec63149e (patch) | |
tree | 6543aa99e4e6242a6622ed189a465808aac249be /mandocdb.c | |
parent | c1e06c51a9056297f12b33c182caafeb99827054 (diff) | |
download | mandoc-25a40fb922bc3637838a5dd91407b306ec63149e.tar.gz mandoc-25a40fb922bc3637838a5dd91407b306ec63149e.tar.zst mandoc-25a40fb922bc3637838a5dd91407b306ec63149e.zip |
DragonFly needs explicit #include <sys/endian.h> to use be64toh(),
while most other systems include that indirectly via <sys/types.h>.
Reported by Franco Fichtner <franco at lastsummer dot de>.
Diffstat (limited to 'mandocdb.c')
-rw-r--r-- | mandocdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.49.2.6 2013/10/01 00:52:58 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.49.2.7 2013/10/02 21:03:26 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org> @@ -41,6 +41,7 @@ # include <libkern/OSByteOrder.h> # include <db.h> #else +# include <sys/endian.h> # include <db.h> #endif |