From 5c8214fbf271b3c47982fb61322e00905aad6cdf Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Wed, 3 Mar 2021 18:07:38 +0000 Subject: Convert REINPLACE_CMD to patch file --- sysutils/agedu/files/patch-httpd.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sysutils/agedu/files/patch-httpd.c (limited to 'sysutils/agedu/files/patch-httpd.c') 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; -- cgit v1.2.3