pkgsrc-Changes archive

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

CVS commit: pkgsrc/editors/xemacs-current/patches



Module Name:    pkgsrc
Committed By:   hauke
Date:           Wed Nov 15 14:58:54 UTC 2017

Added Files:
        pkgsrc/editors/xemacs-current/patches: patch-src_dired.c
Removed Files:
        pkgsrc/editors/xemacs-current/patches: patch-ak

Log Message:
Upgrade to XEmacs 21.5.34

Prefer NAME_MAX over MAXNAMLEN, if available

Was patch-ak


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 pkgsrc/editors/xemacs-current/patches/patch-ak
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/editors/xemacs-current/patches/patch-src_dired.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/editors/xemacs-current/patches/patch-src_dired.c
diff -u /dev/null pkgsrc/editors/xemacs-current/patches/patch-src_dired.c:1.1
--- /dev/null   Wed Nov 15 14:58:54 2017
+++ pkgsrc/editors/xemacs-current/patches/patch-src_dired.c     Wed Nov 15 14:58:53 2017
@@ -0,0 +1,28 @@
+$NetBSD: patch-src_dired.c,v 1.1 2017/11/15 14:58:53 hauke Exp $
+
+Prefer NAME_MAX over MAXNAMLEN, if available
+
+Was patch-ak
+
+--- src/dired.c.orig   2013-08-21 17:43:45.000000000 +0000
++++ src/dired.c
+@@ -20,6 +20,7 @@ along with XEmacs.  If not, see <http://
+ /* Synched up with: FSF 19.30. */
+ 
+ #include <config.h>
++#include <limits.h>
+ #include "lisp.h"
+ 
+ #include "buffer.h"
+@@ -103,7 +104,11 @@ If FILES-ONLY is the symbol t, then only
+   directory = Ffile_name_as_directory (directory);
+   directorylen = XSTRING_LENGTH (directory);
+ 
++#ifdef NAME_MAX
++  statbuf = alloca_ibytes (directorylen + NAME_MAX + 1);
++#else
+   statbuf = alloca_ibytes (directorylen + MAXNAMLEN + 1);
++#endif
+   memcpy (statbuf, XSTRING_DATA (directory), directorylen);
+   statbuf_tail = statbuf + directorylen;
+ 



Home | Main Index | Thread Index | Old Index