Add compat.h

This commit is contained in:
sin 2014-11-17 15:45:09 +00:00
parent 56709a2414
commit cb7cbde722
3 changed files with 10 additions and 5 deletions

View File

@ -5,6 +5,7 @@ include config.mk
HDR =\
arg.h\
compat.h\
crypt.h\
fs.h\
md5.h\

6
compat.h Normal file
View File

@ -0,0 +1,6 @@
/* See LICENSE file for copyright and license details. */
#include <limits.h>
#ifndef HOST_NAME_MAX
#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
#endif

8
util.h
View File

@ -1,13 +1,11 @@
/* See LICENSE file for copyright and license details. */
#include <sys/types.h>
#include <limits.h>
#include <regex.h>
#include <stddef.h>
#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)