Add compat.h
This commit is contained in:
parent
56709a2414
commit
cb7cbde722
1
Makefile
1
Makefile
|
@ -5,6 +5,7 @@ include config.mk
|
||||||
|
|
||||||
HDR =\
|
HDR =\
|
||||||
arg.h\
|
arg.h\
|
||||||
|
compat.h\
|
||||||
crypt.h\
|
crypt.h\
|
||||||
fs.h\
|
fs.h\
|
||||||
md5.h\
|
md5.h\
|
||||||
|
|
6
compat.h
Normal file
6
compat.h
Normal 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
8
util.h
|
@ -1,13 +1,11 @@
|
||||||
/* See LICENSE file for copyright and license details. */
|
/* See LICENSE file for copyright and license details. */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <limits.h>
|
|
||||||
#include <regex.h>
|
#include <regex.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "arg.h"
|
|
||||||
|
|
||||||
#ifndef HOST_NAME_MAX
|
#include "arg.h"
|
||||||
#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
|
#include "compat.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#define UTF8_POINT(c) (((c) & 0xc0) != 0x80)
|
#define UTF8_POINT(c) (((c) & 0xc0) != 0x80)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user