freebsd-ports/editors/bed/files/patch-getfile.cpp
Greg Lewis a7012e1423 . If PACKAGE_BUILDING is set, then set WITHOUT_X11 as we can't guarantee
that we have an appropriate rxvt.
. Make rxvt a PATCH_DEPENDS as it is tested in pre-configure (there is no
  CONFIGURE_DEPENDS).
. Fix packing list and unbreak.
. Fix some minor whitespace bogons in Makefile.
. Add patches which hopefully fix the build on 5.x.
. Add a patch to stop the port installing stuff outside of ${PREFIX}.
  Some of this could be added back in with a better patch that installed
  it in the right place.
2004-01-22 17:39:08 +00:00

13 lines
861 B
C++

--- src/getfile.cpp.orig Thu Apr 17 06:53:47 2003
+++ src/getfile.cpp Mon Dec 8 10:33:51 2003
@@ -503,8 +503,8 @@
};
#include "varmacro.h"
#ifdef OLDGCCVARMACRO
-#define keydef(sym,keys...) input.putseq(sym,sizeof((unsigned char [])##keys),(unsigned char []) ##keys) VARMACRO
-#define seqput(sym,keys...) keyinp->putseq(sym,sizeof((unsigned char [])##keys),(unsigned char []) ##keys) VARMACRO
+#define keydef(sym,keys...) input.putseq(sym,sizeof((unsigned char [])keys),(unsigned char []) keys) VARMACRO
+#define seqput(sym,keys...) keyinp->putseq(sym,sizeof((unsigned char [])keys),(unsigned char []) keys) VARMACRO
#else
#define keydef(sym,...) input.putseq(sym,sizeof((unsigned char [])__VA_ARGS__),(unsigned char []) __VA_ARGS__)
#define seqput(sym,...) keyinp->putseq(sym,sizeof((unsigned char [])__VA_ARGS__),(unsigned char []) __VA_ARGS__)