aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2006-06-20 00:21:48 +0800
committerlofi <lofi@FreeBSD.org>2006-06-20 00:21:48 +0800
commit9be8a5ae920e94e69b36b7cc4d3c7665497cc1b8 (patch)
treefa0ecdc9820307f5b828d2cdc0b791b53ba5c5b7
parente8e1fef2b71ec3254838f23b861bffa60468706e (diff)
downloadfreebsd-ports-gnome-9be8a5ae920e94e69b36b7cc4d3c7665497cc1b8.tar.gz
freebsd-ports-gnome-9be8a5ae920e94e69b36b7cc4d3c7665497cc1b8.tar.zst
freebsd-ports-gnome-9be8a5ae920e94e69b36b7cc4d3c7665497cc1b8.zip
Fix build with gcc 4.1.
PR: ports/99178 Submitted by: Ronald MacNeil <macro@hotmail.com>
-rw-r--r--security/gnupg-devel/files/patch-tools_gpgparsemail.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/security/gnupg-devel/files/patch-tools_gpgparsemail.c b/security/gnupg-devel/files/patch-tools_gpgparsemail.c
new file mode 100644
index 000000000000..327c7bef8354
--- /dev/null
+++ b/security/gnupg-devel/files/patch-tools_gpgparsemail.c
@@ -0,0 +1,29 @@
+--- tools/gpgparsemail.c.orig Mon Jun 19 18:18:11 2006
++++ tools/gpgparsemail.c Mon Jun 19 18:18:55 2006
+@@ -24,6 +24,9 @@
+ for the content of the line. Several options are available to
+ scrutinize the message. S/MIME and OpenPGP support is included. */
+
++#ifdef HAVE_CONFIG_H
++#include <config.h>
++#endif
+
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -145,6 +148,7 @@
+ return p;
+ }
+
++#ifndef HAVE_STPCPY
+ static char *
+ stpcpy (char *a,const char *b)
+ {
+@@ -154,7 +158,7 @@
+
+ return (char*)a;
+ }
+-
++#endif
+
+ static int
+ run_gnupg (int smime, int sig_fd, int data_fd, int *close_list)