wok diff cyrus-imapd/stuff/50-FTBFS-gcc-4.0-fix.dpatch @ rev 1577

abiword-plugins: add libgio in DEPENDS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 15 20:27:12 2008 +0000 (2008-10-15)
parents
children 53ce5256aa41
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cyrus-imapd/stuff/50-FTBFS-gcc-4.0-fix.dpatch	Wed Oct 15 20:27:12 2008 +0000
     1.3 @@ -0,0 +1,27 @@
     1.4 +#! /bin/sh /usr/share/dpatch/dpatch-run
     1.5 +## 50-FTBFS-gcc-4.0-fix.dpatch by Ondřej Surý <ondrej@sury.org>
     1.6 +##
     1.7 +## All lines beginning with `## DP:' are a description of the patch.
     1.8 +## DP: Fix FTBFS when compiling with gcc-4.0, there is imapopts is used before declared
     1.9 +
    1.10 +@DPATCH@
    1.11 +diff -urN cyrus22-imapd-2.2.12~/tools/config2header cyrus22-imapd-2.2.12/tools/config2header
    1.12 +--- cyrus22-imapd-2.2.12~/tools/config2header	2004-06-22 21:02:31.000000000 +0200
    1.13 ++++ cyrus22-imapd-2.2.12/tools/config2header	2005-06-22 07:56:17.180293688 +0200
    1.14 +@@ -214,7 +214,6 @@
    1.15 + print HFILE <<EOF
    1.16 +   IMAPOPT_LAST
    1.17 + };
    1.18 +-extern struct imapopt_s imapopts[];
    1.19 + 
    1.20 + enum enum_value {
    1.21 +   IMAP_ENUM_ZERO = 0,
    1.22 +@@ -260,6 +259,8 @@
    1.23 + 
    1.24 + print HFILE <<EOF
    1.25 + };
    1.26 ++extern struct imapopt_s imapopts[];
    1.27 ++
    1.28 + #endif /* INCLUDED_IMAPOPTIONS_H */
    1.29 + EOF
    1.30 +     ;