27 lines
582 B
Text
27 lines
582 B
Text
|
$NetBSD: patch-aw,v 1.1 2005/12/13 21:30:11 joerg Exp $
|
||
|
|
||
|
--- src/unix.c.orig 2005-12-13 17:46:52.000000000 +0000
|
||
|
+++ src/unix.c
|
||
|
@@ -10,7 +10,8 @@
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
#include <pwd.h>
|
||
|
-#include <sys/dir.h>
|
||
|
+#include <dirent.h>
|
||
|
+#include <limits.h>
|
||
|
#include <time.h>
|
||
|
#include <unistd.h>
|
||
|
#include "icb.h"
|
||
|
@@ -235,7 +236,11 @@ tildexpand (char *s)
|
||
|
struct passwd *pw;
|
||
|
char login[17];
|
||
|
char *p = login;
|
||
|
+#ifdef NAME_MAX
|
||
|
+ static char path[NAME_MAX + 1];
|
||
|
+#else
|
||
|
static char path[MAXNAMLEN+1];
|
||
|
+#endif
|
||
|
|
||
|
/* has to start with a tilde */
|
||
|
if (*s++ != '~')
|