aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/smtp-gated/files/patch-src__util.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/mail/smtp-gated/files/patch-src__util.c b/mail/smtp-gated/files/patch-src__util.c
new file mode 100644
index 000000000000..073c72b8d9a0
--- /dev/null
+++ b/mail/smtp-gated/files/patch-src__util.c
@@ -0,0 +1,23 @@
+--- ./src/util.c.orig 2012-12-03 22:11:37.000000000 +0100
++++ ./src/util.c 2012-12-03 22:11:44.000000000 +0100
+@@ -966,16 +966,16 @@
+ } /* set_rlimit() */
+ #endif
+
+-/* netmask(28) => 255.255.255.240 (network order) */
+-u_int32_t netmask(int m)
+-{
+- inline u_int32_t power(u_int32_t x, u_int32_t y)
++static inline u_int32_t power(u_int32_t x, u_int32_t y)
+ {
+ u_int32_t r = 1;
+ while (y--) r*=x;
+ return r;
+ }
+
++/* netmask(28) => 255.255.255.240 (network order) */
++u_int32_t netmask(int m)
++{
+ if (m < 0)
+ m = 0;
+