Mon Nov 11 19:47:10 2019 UTC ()
Fix build break on illumos

Fix build break on illumos, taken from upstream.


(nros)
diff -r1.53 -r1.54 pkgsrc/www/lighttpd/distinfo
diff -r0 -r1.3 pkgsrc/www/lighttpd/patches/patch-src_fdevent__solaris__port.c

cvs diff -r1.53 -r1.54 pkgsrc/www/lighttpd/distinfo (expand / switch to unified diff)

--- pkgsrc/www/lighttpd/distinfo 2019/05/29 10:01:28 1.53
+++ pkgsrc/www/lighttpd/distinfo 2019/11/11 19:47:10 1.54
@@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
1$NetBSD: distinfo,v 1.53 2019/05/29 10:01:28 nia Exp $ 1$NetBSD: distinfo,v 1.54 2019/11/11 19:47:10 nros Exp $
2 2
3SHA1 (lighttpd-1.4.54.tar.xz) = 31c6df437d90f4bceb41f6d758e0fbcd0f854a37 3SHA1 (lighttpd-1.4.54.tar.xz) = 31c6df437d90f4bceb41f6d758e0fbcd0f854a37
4RMD160 (lighttpd-1.4.54.tar.xz) = 24ac7d816918e1c87aaaa1e6ae8f775a464527fc 4RMD160 (lighttpd-1.4.54.tar.xz) = 24ac7d816918e1c87aaaa1e6ae8f775a464527fc
5SHA512 (lighttpd-1.4.54.tar.xz) = aa180a2751711a77b9da91a6a285c967d2c183ccbabe3e9064aea74e44629c3b0227ac98c7d720c8d4d223ce4b31e8b221b05b928adc917b199ab1015fcdba37 5SHA512 (lighttpd-1.4.54.tar.xz) = aa180a2751711a77b9da91a6a285c967d2c183ccbabe3e9064aea74e44629c3b0227ac98c7d720c8d4d223ce4b31e8b221b05b928adc917b199ab1015fcdba37
6Size (lighttpd-1.4.54.tar.xz) = 763248 bytes 6Size (lighttpd-1.4.54.tar.xz) = 763248 bytes
7SHA1 (patch-doc_config_lighttpd.conf) = 9b249155aa29d7d068d48a601f314aa4b62491ef 7SHA1 (patch-doc_config_lighttpd.conf) = 9b249155aa29d7d068d48a601f314aa4b62491ef
8SHA1 (patch-doc_lighttpd.8) = 81b7606752312227b142975d4e781496442e9ed8 8SHA1 (patch-doc_lighttpd.8) = 81b7606752312227b142975d4e781496442e9ed8
 9SHA1 (patch-src_fdevent__solaris__port.c) = 7d9175065bb751b4a23941c97d0ff0383586cd7e

File Added: pkgsrc/www/lighttpd/patches/Attic/patch-src_fdevent__solaris__port.c
$NetBSD: patch-src_fdevent__solaris__port.c,v 1.3 2019/11/11 19:47:10 nros Exp $
* fix build on illumos
  from upstream: https://redmine.lighttpd.net/issues/2959
--- src/fdevent_solaris_port.c.orig	2019-11-11 18:06:14.250349299 +0000
+++ src/fdevent_solaris_port.c
@@ -20,7 +20,7 @@ static int fdevent_solaris_port_event_de
 }
 
 static int fdevent_solaris_port_event_set(fdevents *ev, fdnode *fdn, int events) {
-    int fd = fdn->fdn_ndx = fdn->fd;
+    int fd = fdn->fde_ndx = fdn->fd;
     intptr_t ud = events & (POLLIN|POLLOUT);
     return port_associate(ev->port_fd,PORT_SOURCE_FD,fd,(int)ud,(void*)ud);
 }