summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorrichard <richard@pkgsrc.org>2015-10-16 20:09:02 +0000
committerrichard <richard@pkgsrc.org>2015-10-16 20:09:02 +0000
commit6699c38fe96f5017425816d5f88017b5cac2aca0 (patch)
tree014a77e984f8215956170630f665c32f69164434 /www
parent49f7a1b71565e4d649db3777888ec9a37a32f9e6 (diff)
downloadpkgsrc-6699c38fe96f5017425816d5f88017b5cac2aca0.tar.gz
SunOS doesn't define d_namlen element of dirent structure
but uses d_reclen instead, so define an alias.
Diffstat (limited to 'www')
-rw-r--r--www/bozohttpd/distinfo3
-rw-r--r--www/bozohttpd/patches/patch-bozohttpd.c17
2 files changed, 19 insertions, 1 deletions
diff --git a/www/bozohttpd/distinfo b/www/bozohttpd/distinfo
index a1e54ce2024..e8acf18048a 100644
--- a/www/bozohttpd/distinfo
+++ b/www/bozohttpd/distinfo
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.61 2015/03/25 23:49:33 mrg Exp $
+$NetBSD: distinfo,v 1.62 2015/10/16 20:09:02 richard Exp $
SHA1 (bozohttpd-20150320.tar.bz2) = 1126d17a79c87bde1df77f6f71e6e040726579a0
RMD160 (bozohttpd-20150320.tar.bz2) = 7e8db6b6cc3f6df5638eeabed5ec4ee1efa859c2
Size (bozohttpd-20150320.tar.bz2) = 52482 bytes
SHA1 (patch-aa) = 2e70d3d10aa8bc228331cc1a229ef04106aca210
SHA1 (patch-ab) = a1a56a188084440ab907995c7728e435961c5fbd
+SHA1 (patch-bozohttpd.c) = 489f88d20e049346d5586d524c0ff8678e37730e
SHA1 (patch-cgi-bozo.c) = 420f981575d7fa1a96ac7049116b9bf64de719df
diff --git a/www/bozohttpd/patches/patch-bozohttpd.c b/www/bozohttpd/patches/patch-bozohttpd.c
new file mode 100644
index 00000000000..85d12092912
--- /dev/null
+++ b/www/bozohttpd/patches/patch-bozohttpd.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-bozohttpd.c,v 1.1 2015/10/16 20:09:02 richard Exp $
+
+SunOS doesn't define d_namlen element of dirent structure
+but uses d_reclen instead, so define an alias.
+
+--- bozohttpd.c.orig 2015-03-25 23:38:50.000000000 +0000
++++ bozohttpd.c
+@@ -1093,6 +1093,9 @@ check_virtual(bozo_httpreq_t *request)
+ }
+ debug((httpd, DEBUG_OBESE, "looking at dir``%s''",
+ d->d_name));
++#ifdef __sun
++#define d_namlen d_reclen
++#endif
+ if (d->d_namlen == len && strcmp(d->d_name,
+ request->hr_host) == 0) {
+ /* found it, punch it */