From cb7cbde72233be91b1a5fdbae5aa6f78a8ba4cd9 Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 17 Nov 2014 15:45:09 +0000 Subject: [PATCH] Add compat.h --- Makefile | 1 + compat.h | 6 ++++++ util.h | 8 +++----- 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 compat.h diff --git a/Makefile b/Makefile index 99d6f51..ad280a3 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ include config.mk HDR =\ arg.h\ + compat.h\ crypt.h\ fs.h\ md5.h\ diff --git a/compat.h b/compat.h new file mode 100644 index 0000000..e2154a6 --- /dev/null +++ b/compat.h @@ -0,0 +1,6 @@ +/* See LICENSE file for copyright and license details. */ +#include + +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX +#endif diff --git a/util.h b/util.h index b152ffd..2de6f3b 100644 --- a/util.h +++ b/util.h @@ -1,13 +1,11 @@ /* See LICENSE file for copyright and license details. */ #include -#include + #include #include -#include "arg.h" -#ifndef HOST_NAME_MAX -#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX -#endif +#include "arg.h" +#include "compat.h" #define UTF8_POINT(c) (((c) & 0xc0) != 0x80)