diff options
Diffstat (limited to 'mail/qpopper/patches/patch-ap')
-rw-r--r-- | mail/qpopper/patches/patch-ap | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/mail/qpopper/patches/patch-ap b/mail/qpopper/patches/patch-ap index 61ec0ccbc6d..2498241403b 100644 --- a/mail/qpopper/patches/patch-ap +++ b/mail/qpopper/patches/patch-ap @@ -1,8 +1,8 @@ -$NetBSD: patch-ap,v 1.3 2005/06/01 20:55:16 adrianp Exp $ +$NetBSD: patch-ap,v 1.4 2012/03/22 14:13:29 taca Exp $ ---- popper/main.c.orig 2005-05-28 17:29:10.000000000 +0100 +--- popper/main.c.orig 2011-05-30 19:13:39.000000000 +0000 +++ popper/main.c -@@ -246,6 +246,7 @@ main ( int argc, char *argv[] ) +@@ -310,6 +310,7 @@ main ( int argc, char *argv[] ) fd_set fdset_templ; fd_set fdset_read; int fd_flags = 0; @@ -10,24 +10,24 @@ $NetBSD: patch-ap,v 1.3 2005/06/01 20:55:16 adrianp Exp $ #ifdef USE_PAM -@@ -625,7 +626,10 @@ main ( int argc, char *argv[] ) - "listening using socket fd %d", - sockfd ); +@@ -781,7 +782,10 @@ main ( int argc, char *argv[] ) + TRACE ( trace_file, POP_DEBUG, HERE, "listening using socket fd %d", + sockfd ); -- listen ( sockfd, 5 ); +- listen ( sockfd, 5 ); +#ifndef SOMAXCONN +#define SOMAXCONN 5 +#endif + listen ( sockfd, SOMAXCONN ); - /* - * Set file descriptor to be non-blocking in case there isn't really a -@@ -655,6 +659,16 @@ main ( int argc, char *argv[] ) + /* + * Set file descriptor to be non-blocking in case there isn't really a +@@ -823,6 +827,16 @@ main ( int argc, char *argv[] ) signal ( SIGHUP, VOIDSTAR hupit ); signal ( SIGTERM, VOIDSTAR cleanup ); +#ifndef PIDFILE -+#define PIDFILE "/var/run/qpopper.pid" ++#define PIDFILE "@VARBASE@/run/qpopper.pid" +#endif + fp = fopen(PIDFILE, "w"); + if (fp == NULL) { |