1
0
mirror of git://git.suckless.org/sbase synced 2024-12-24 16:02:54 +00:00

Define HOST_NAME_MAX if necessary

Some systems do not provide this, namely FreeBSD and NetBSD.
This commit is contained in:
sin 2014-11-17 14:50:12 +00:00
parent ba70777b56
commit bd3cf55b54

7
util.h
View File

@ -1,9 +1,14 @@
/* See LICENSE file for copyright and license details. */
#include <sys/types.h>
#include <limits.h>
#include <regex.h>
#include <stddef.h>
#include <sys/types.h>
#include "arg.h"
#ifndef HOST_NAME_MAX
#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
#endif
#define UTF8_POINT(c) (((c) & 0xc0) != 0x80)
#undef MIN