blob: b183466b42ccfa8fa34766df266a3dfa30d3d5bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-aa,v 1.2 2012/02/29 20:17:32 hans Exp $
--- xbinunix.c.orig 2005-08-17 18:43:47.000000000 +0000
+++ xbinunix.c
@@ -2,12 +2,15 @@
static char version[] = "xbin.c Version 2.3 09/30/85";
#endif lint
+#include <limits.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/dir.h>
+#include <dirent.h>
-#ifdef MAXNAMLEN /* 4.2 BSD */
+#if defined(NAME_MAX)
+#define FNAMELEN NAME_MAX
+#elif defined(MAXNAMLEN) /* 4.2 BSD */
#define FNAMELEN MAXNAMLEN
#else
#define FNAMELEN DIRSIZ
|