pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/php-xdebug/patches



Module Name:    pkgsrc
Committed By:   taca
Date:           Sat Sep 19 13:35:16 UTC 2020

Added Files:
        pkgsrc/devel/php-xdebug/patches: patch-src_debugger_com.c

Log Message:
devel/php-xdebug: add a patch file

Oops, forgot to commit a patch file.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/php-xdebug/patches/patch-src_debugger_com.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/php-xdebug/patches/patch-src_debugger_com.c
diff -u /dev/null pkgsrc/devel/php-xdebug/patches/patch-src_debugger_com.c:1.1
--- /dev/null   Sat Sep 19 13:35:16 2020
+++ pkgsrc/devel/php-xdebug/patches/patch-src_debugger_com.c    Sat Sep 19 13:35:16 2020
@@ -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