Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Include "sys/param.h" and use "MATHPATHLEN" ins...



details:   https://anonhg.NetBSD.org/src/rev/a1490f41a133
branches:  trunk
changeset: 534844:a1490f41a133
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Aug 04 11:55:51 2002 +0000

description:
Include "sys/param.h" and use "MATHPATHLEN" instead of "_POSIX_PATH_MAX"
to fix build problem.

diffstat:

 lib/libc/gen/getcap.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r a0c69442c8e3 -r a1490f41a133 lib/libc/gen/getcap.c
--- a/lib/libc/gen/getcap.c     Sun Aug 04 05:42:43 2002 +0000
+++ b/lib/libc/gen/getcap.c     Sun Aug 04 11:55:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getcap.c,v 1.35 2002/04/16 19:07:57 groo Exp $ */
+/*     $NetBSD: getcap.c,v 1.36 2002/08/04 11:55:51 tron Exp $ */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -41,12 +41,13 @@
 #if 0
 static char sccsid[] = "@(#)getcap.c   8.3 (Berkeley) 3/25/94";
 #else
-__RCSID("$NetBSD: getcap.c,v 1.35 2002/04/16 19:07:57 groo Exp $");
+__RCSID("$NetBSD: getcap.c,v 1.36 2002/08/04 11:55:51 tron Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
 #include <sys/types.h>
+#include <sys/param.h>
 
 #include <assert.h>
 #include <ctype.h>
@@ -251,7 +252,7 @@
        size_t clen;
        char *record, *cbuf, *newrecord;
        int tc_not_resolved;
-       char pbuf[_POSIX_PATH_MAX];
+       char pbuf[MAXPATHLEN];
        
        _DIAGASSERT(cap != NULL);
        _DIAGASSERT(len != NULL);



Home | Main Index | Thread Index | Old Index