2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

hurd: Fix build

Move PATH_MAX, NAME_MAX, IOV_MAX default definitions to the common
<isc/platform.h>.
This commit is contained in:
Samuel Thibault
2019-11-10 20:14:17 +00:00
parent 9e2da86ab9
commit d10fbdec84
7 changed files with 24 additions and 27 deletions

View File

@@ -63,6 +63,7 @@
#include <isc/log.h>
#include <isc/md.h>
#include <isc/mem.h>
#include <isc/platform.h>
#include <isc/print.h>
#include <isc/random.h>
#include <isc/string.h>
@@ -696,9 +697,6 @@ isc_file_munmap(void *addr, size_t len) {
}
#define DISALLOW "\\/ABCDEFGHIJKLMNOPQRSTUVWXYZ"
#ifndef PATH_MAX
#define PATH_MAX 1024
#endif
static isc_result_t
digest2hex(unsigned char *digest, unsigned int digestlen,

View File

@@ -18,16 +18,9 @@
#include <dirent.h>
#include <isc/lang.h>
#include <isc/platform.h>
#include <isc/result.h>
#ifndef NAME_MAX
#define NAME_MAX 256
#endif
#ifndef PATH_MAX
#define PATH_MAX 1024
#endif
/*% Directory Entry */
typedef struct isc_direntry {
char name[NAME_MAX];