freebsd-ports/editors/bed/files/patch-keyconfig.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

23 lines
662 B
C++

--- src/keyconfig.cpp.orig Thu May 23 14:28:24 2002
+++ src/keyconfig.cpp Tue Dec 16 10:46:21 2003
@@ -46,16 +46,16 @@
char *proc;
};
-#define elk(x,y,z) ((struct keydef) {y,#z})
-#define sym(x) (struct keydef) {x,x}
+#define elk(x,y,z) {y,#z}
+#define sym(x) {x,x}
#define LINE {NULL,NULL}
-#define two(name,proc) ((struct keydef) {name,#proc})
+#define two(name,proc) {name,#proc}
#define elm(x,z) LINE
//#define elm(x,z)
//#define LINE
#include "varmacro.h"
#ifdef OLDGCCVARMACRO
-#define menumake(file,name,els...) ,##els VARMACRO
+#define menumake(file,name,els...) ,els VARMACRO
#else
#define menumake(file,name,...) ,__VA_ARGS__
#endif