Annotation of pkgsrc/sysutils/lsof/patches/patch-ae, revision 1.12

1.12    ! tnn         1: $NetBSD: patch-ae,v 1.11 2007/08/14 19:59:18 veego Exp $
1.1       atatat      2: 
1.12    ! tnn         3: --- dialects/n+obsd/dmnt.c.orig        2005-08-08 19:53:31.000000000 +0000
        !             4: +++ dialects/n+obsd/dmnt.c
        !             5: @@ -45,6 +45,18 @@ static char *rcsid = "$Id: dmnt.c,v 1.12
1.9       tron        6:  #include <sys/statvfs.h>
                      7:  #endif  /* defined(NETBSDV) && defined(HASSTATVFS) */
                      8:  
                      9: +#if defined(NETBSDV)
1.10      tron       10: +#include <sys/param.h>
                     11: +
1.12    ! tnn        12: +#if __NetBSD_Version__ >= 899000100
        !            13: +#define __EXPOSE_MOUNT
        !            14: +#endif
1.10      tron       15: +#if __NetBSD_Version__ >= 399002400
1.9       tron       16: +#include <sys/types.h>
                     17: +#include <sys/mount.h>
                     18: +#endif
1.10      tron       19: +#endif
1.5       atatat     20: +
1.9       tron       21:  #include "lsof.h"
1.5       atatat     22:  
1.6       atatat     23:  
1.12    ! tnn        24: @@ -94,7 +106,12 @@ readmnt()
1.11      veego      25:        for (; n; n--, mb++) {
                     26:            if (mb->f_fstypename[0] == '\0')
                     27:                continue;
                     28: +#if defined(NETBSDV) && __NetBSD_Version__ >= 499002500
                     29: +          /* MFSNAMELEN was removed from the kernel source after 4.99.24 */
                     30: +          mb->f_fstypename[sizeof(mb->f_fstypename) - 1] = '\0';
                     31: +#else
                     32:            mb->f_fstypename[MFSNAMELEN - 1] = '\0';
                     33: +#endif
                     34:        /*
                     35:         * Interpolate a possible symbolic directory link.
                     36:         */

CVSweb <webmaster@jp.NetBSD.org>