From 7f797d8a3f00b82a0c97405b68e7c3beb70d0278 Mon Sep 17 00:00:00 2001 From: naddy Date: Fri, 9 Sep 2011 20:13:28 +0000 Subject: [PATCH] allow this to build with gcc3 --- .../sshguard/patches/patch-src_fwalls_command_c | 15 +++++++++++++++ security/sshguard/patches/patch-src_sshguard_fw_h | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 security/sshguard/patches/patch-src_fwalls_command_c create mode 100644 security/sshguard/patches/patch-src_sshguard_fw_h diff --git a/security/sshguard/patches/patch-src_fwalls_command_c b/security/sshguard/patches/patch-src_fwalls_command_c new file mode 100644 index 00000000000..f1598a55650 --- /dev/null +++ b/security/sshguard/patches/patch-src_fwalls_command_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_fwalls_command_c,v 1.1 2011/09/09 20:13:28 naddy Exp $ + +Allow building with gcc3. + +--- src/fwalls/command.c.orig Fri Sep 9 22:07:56 2011 ++++ src/fwalls/command.c Fri Sep 9 22:08:12 2011 +@@ -59,7 +59,7 @@ int fw_block(const char *restrict addr, int addrkind, + return (run_command(COMMAND_BLOCK, addr, addrkind, service) == 0 ? FWALL_OK : FWALL_ERR); + } + +-int fw_block_list(const char *restrict addresses[], int addrkind, const int service_codes[]) { ++int fw_block_list(const char *restrict *addresses, int addrkind, const int service_codes[]) { + /* block each address individually */ + int i; + diff --git a/security/sshguard/patches/patch-src_sshguard_fw_h b/security/sshguard/patches/patch-src_sshguard_fw_h new file mode 100644 index 00000000000..e6a03b2e16f --- /dev/null +++ b/security/sshguard/patches/patch-src_sshguard_fw_h @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_sshguard_fw_h,v 1.1 2011/09/09 20:13:28 naddy Exp $ + +Allow building with gcc3. + +--- src/sshguard_fw.h.orig Fri Sep 9 22:07:03 2011 ++++ src/sshguard_fw.h Fri Sep 9 22:07:20 2011 +@@ -85,7 +85,7 @@ int fw_block(const char *restrict addr, int addrkind, + * + * @return FWALL_OK or FWALL_ERR + */ +-int fw_block_list(const char *restrict addresses[], int addrkind, const int service_codes[]); ++int fw_block_list(const char *restrict *addresses, int addrkind, const int service_codes[]); + + + /**