Skip to content

Commit

Permalink
www/mod_umask: Fix build on FreeBSD 14+
Browse files Browse the repository at this point in the history
PR:		275429
  • Loading branch information
SIneyq authored and rbgarga committed Nov 29, 2023
1 parent ba86aef commit fc1d174
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
5 changes: 2 additions & 3 deletions www/mod_umask/Makefile
Expand Up @@ -11,13 +11,12 @@ WWW= http://www.outoforder.cc/projects/httpd/mod_umask/

LICENSE= APACHE20

BROKEN_FreeBSD_14= fails to build: incompatible function pointer types

USES= apache tar:bzip2
GNU_CONFIGURE= yes

AP_FAST_BUILD= yes
AP_GENPLIST= yes
SRC_FILE= src/${PORTNAME}.c

GNU_CONFIGURE= yes

.include <bsd.port.mk>
19 changes: 19 additions & 0 deletions www/mod_umask/files/patch-src_mod__umask.c
@@ -0,0 +1,19 @@
--- src/mod_umask.c.orig 2004-10-12 19:03:16 UTC
+++ src/mod_umask.c
@@ -26,6 +26,7 @@
*
*/

+#include <sys/stat.h>
#include "httpd.h"
#include "http_core.h"
#include "http_config.h"
@@ -42,7 +43,7 @@ struct umask_config_rec
long int mask;
};

-static void *umask_create_config(apr_pool_t * p, char *dir)
+static void *umask_create_config(apr_pool_t * p, server_rec *dir)
{
umask_config_rec *dConfig = apr_pcalloc(p, sizeof(*dConfig));

0 comments on commit fc1d174

Please sign in to comment.