[57667] trunk/dports/editors/nvi

toby at macports.org toby at macports.org
Mon Sep 14 11:44:01 PDT 2009


Revision: 57667
          http://trac.macports.org/changeset/57667
Author:   toby at macports.org
Date:     2009-09-14 11:43:58 -0700 (Mon, 14 Sep 2009)
Log Message:
-----------
build fix #21363

Modified Paths:
--------------
    trunk/dports/editors/nvi/Portfile

Added Paths:
-----------
    trunk/dports/editors/nvi/files/patch-common__key.h
    trunk/dports/editors/nvi/files/patch-dist__port.h.in

Modified: trunk/dports/editors/nvi/Portfile
===================================================================
--- trunk/dports/editors/nvi/Portfile	2009-09-14 18:28:44 UTC (rev 57666)
+++ trunk/dports/editors/nvi/Portfile	2009-09-14 18:43:58 UTC (rev 57667)
@@ -27,6 +27,8 @@
 
 patchfiles \
     patch-common__db.h \
+    patch-common__key.h \
+    patch-dist__port.h.in \
     patch-ex_script.c.diff
 
 configure.args \

Added: trunk/dports/editors/nvi/files/patch-common__key.h
===================================================================
--- trunk/dports/editors/nvi/files/patch-common__key.h	                        (rev 0)
+++ trunk/dports/editors/nvi/files/patch-common__key.h	2009-09-14 18:43:58 UTC (rev 57667)
@@ -0,0 +1,22 @@
+--- ../common/key.h.orig	2009-09-14 11:42:00.000000000 -0700
++++ ../common/key.h	2009-09-14 11:42:10.000000000 -0700
+@@ -196,19 +196,6 @@
+ 	(KEYS_WAITING(sp) &&						\
+ 	    FL_ISSET((sp)->wp->i_event[(sp)->wp->i_next].e_flags, CH_MAPPED))
+ 
+-/*
+- * Ex/vi commands are generally separated by whitespace characters.  We
+- * can't use the standard isspace(3) macro because it returns true for
+- * characters like ^K in the ASCII character set.  The 4.4BSD isblank(3)
+- * macro does exactly what we want, but it's not portable yet.
+- *
+- * XXX
+- * Note side effect, ch is evaluated multiple times.
+- */
+-#ifndef isblank
+-#define	isblank(ch)	((ch) == ' ' || (ch) == '\t')
+-#endif
+-
+ /* The "standard" tab width, for displaying things to users. */
+ #define	STANDARD_TAB	6
+ 

Added: trunk/dports/editors/nvi/files/patch-dist__port.h.in
===================================================================
--- trunk/dports/editors/nvi/files/patch-dist__port.h.in	                        (rev 0)
+++ trunk/dports/editors/nvi/files/patch-dist__port.h.in	2009-09-14 18:43:58 UTC (rev 57667)
@@ -0,0 +1,13 @@
+--- port.h.in.orig	2009-09-14 11:37:02.000000000 -0700
++++ port.h.in	2009-09-14 11:37:12.000000000 -0700
+@@ -184,10 +184,6 @@
+ #endif
+ #endif
+ 
+-#ifndef HAVE_MEMCPY
+-#define memcpy memmove
+-#endif
+-
+ #ifdef NEED_FPRINTF_PROTO
+ extern  int     fprintf( FILE *, const char *, ... );
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090914/ee43c55b/attachment.html>


More information about the macports-changes mailing list