summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/agedu/Makefile3
-rw-r--r--sysutils/agedu/files/patch-httpd.c11
2 files changed, 11 insertions, 3 deletions
diff --git a/sysutils/agedu/Makefile b/sysutils/agedu/Makefile
index 94ae40a6b6a9..e187c538b1cb 100644
--- a/sysutils/agedu/Makefile
+++ b/sysutils/agedu/Makefile
@@ -18,7 +18,4 @@ GNU_CONFIGURE= yes
PLIST_FILES= bin/agedu \
man/man1/agedu.1.gz
-post-patch:
- @${REINPLACE_CMD} -e 's|HOST_NAME_MAX|_POSIX_&|' ${WRKSRC}/httpd.c
-
.include <bsd.port.mk>
diff --git a/sysutils/agedu/files/patch-httpd.c b/sysutils/agedu/files/patch-httpd.c
new file mode 100644
index 000000000000..6c9b7c50a3c6
--- /dev/null
+++ b/sysutils/agedu/files/patch-httpd.c
@@ -0,0 +1,11 @@
+--- httpd.c.orig 2020-07-05 01:20:14 UTC
++++ httpd.c
+@@ -570,7 +570,7 @@ static int make_listening_sockets(struct listenfds *fd
+ portstr = NULL; /* normalise NULL and empty string */
+
+ if (!address) {
+- char hostname[HOST_NAME_MAX];
++ char hostname[_POSIX_HOST_NAME_MAX];
+ if (gethostname(hostname, sizeof(hostname)) < 0) {
+ perror("hostname");
+ return -1;