pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/php-xdebug/patches devel/php-xdebug: add a patch...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/43b70a9c8bf3
branches:  trunk
changeset: 439391:43b70a9c8bf3
user:      taca <taca%pkgsrc.org@localhost>
date:      Sat Sep 19 13:35:16 2020 +0000

description:
devel/php-xdebug: add a patch file

Oops, forgot to commit a patch file.

diffstat:

 devel/php-xdebug/patches/patch-src_debugger_com.c |  29 +++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diffs (33 lines):

diff -r ad33dc62feff -r 43b70a9c8bf3 devel/php-xdebug/patches/patch-src_debugger_com.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/php-xdebug/patches/patch-src_debugger_com.c Sat Sep 19 13:35:16 2020 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-src_debugger_com.c,v 1.1 2020/09/19 13:35:16 taca Exp $
+
+Use standard value for second argument of setsockopt(2).
+
+--- src/debugger/com.c.orig    2020-09-16 14:14:16.000000000 +0000
++++ src/debugger/com.c
+@@ -106,19 +106,19 @@ void set_keepalive_options(int fd)
+       }
+ 
+       optval = 600;
+-      ret = setsockopt(fd, SOL_TCP, TCP_KEEPIDLE, &optval, optlen);
++      ret = setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &optval, optlen);
+       if (ret) {
+               return;
+       }
+ 
+       optval = 20;
+-      ret = setsockopt(fd, SOL_TCP, TCP_KEEPCNT, &optval, optlen);
++      ret = setsockopt(fd, IPPROTO_TCP, TCP_KEEPCNT, &optval, optlen);
+       if (ret) {
+               return;
+       }
+ 
+       optval = 60;
+-      ret = setsockopt(fd, SOL_TCP, TCP_KEEPINTVL, &optval, optlen);
++      ret = setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, &optval, optlen);
+       if (ret) {
+               return;
+       }



Home | Main Index | Thread Index | Old Index