#include <limits.h> for PATH_MAX, define if not found

This commit is contained in:
Mark Andrews 2019-03-08 17:15:01 +11:00
parent ce6f3d4bb4
commit 1fc7be36eb

View file

@ -27,6 +27,7 @@
#include <sys/types.h>
#include <ctype.h>
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
@ -135,6 +136,10 @@ static const char copyright[] =
#define TYPECLASSFMT "%" STR(TYPECLASSLEN) "[-0-9a-z]_%d"
#define ATTRIBUTESIZE 256
#ifndef PATH_MAX
#define PATH_MAX 1024
#endif
static struct cc {
struct cc *next;
int rdclass;