1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Fix build with gcc 4.2

PR:		118900
Submitted by:	Pietro Cerutti <gahr@gahr.ch>
This commit is contained in:
Martin Wilke 2007-12-22 00:08:36 +00:00
parent 9da8f65ee6
commit ca684388d5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=204307
3 changed files with 20 additions and 7 deletions

View File

@ -26,14 +26,8 @@ CONFIGURE_ENV= glibpath="${GLIB_CONFIG}" \
CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 700042
BROKEN= Broken with gcc 4.2
.endif
post-patch:
@${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
${WRKSRC}/configure ${WRKSRC}/libmutt/configure
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
--- libmutt/keymap.h.orig 2007-12-20 19:31:26.000000000 +0100
+++ libmutt/keymap.h 2007-12-20 19:32:04.000000000 +0100
@@ -77,7 +77,7 @@
/* dokey() records the last real key pressed */
extern int LastKey;
-extern struct mapping_t Menus[];
+extern struct mapping_t *Menus;
struct binding_t
{

View File

@ -0,0 +1,8 @@
--- libmutt/sort.h.orig 2007-12-20 19:32:43.000000000 +0100
+++ libmutt/sort.h 2007-12-20 19:32:55.000000000 +0100
@@ -45,4 +45,4 @@
WHERE short SortAux INITVAL (SORT_DATE); /* auxiallary sorting method */
WHERE short SortAlias INITVAL (SORT_ALIAS);
-extern const struct mapping_t SortMethods[];
+extern const struct mapping_t *SortMethods;