Ticket #1394: 0001-rtems-make-MAXNAMLEN-match-with-NAME_MAX.patch

File 0001-rtems-make-MAXNAMLEN-match-with-NAME_MAX.patch, 653 bytes (added by Gedare Bloom, on 02/25/15 at 19:06:54)

Possible Fix

  • newlib/libc/sys/rtems/sys/dirent.h

    From f3fd0d4034158284d4638f39cc4ae8cb05997a1f Mon Sep 17 00:00:00 2001
    From: Gedare Bloom <gedare@rtems.org>
    Date: Wed, 25 Feb 2015 14:05:00 -0500
    Subject: [PATCH] rtems: make MAXNAMLEN match with NAME_MAX
    
    ---
     newlib/libc/sys/rtems/sys/dirent.h | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/newlib/libc/sys/rtems/sys/dirent.h b/newlib/libc/sys/rtems/sys/dirent.h
    index 8d2aa38..0a32c58 100644
    a b void _seekdir(DIR *dir, long offset); 
    4141
    4242#include <limits.h>
    4343
     44#define MAXNAMLEN NAME_MAX
     45
    4446struct dirent {
    4547        long    d_ino;
    4648        off_t   d_off;