git: beb5b0a2f8f1 - main - www/nginx-devel: add missing patch for a third-party nats module
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Aug 2025 14:34:31 UTC
The branch main has been updated by osa:
URL: https://cgit.FreeBSD.org/ports/commit/?id=beb5b0a2f8f1180a7f1b7de56df92cf70077f50f
commit beb5b0a2f8f1180a7f1b7de56df92cf70077f50f
Author: Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2025-08-29 14:33:17 +0000
Commit: Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2025-08-29 14:34:22 +0000
www/nginx-devel: add missing patch for a third-party nats module
Fixes: 440ea1147823c49e67ee4ee0e8444fe3ee8e330a
---
www/nginx-devel/files/extra-patch-ngx_nats.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/www/nginx-devel/files/extra-patch-ngx_nats.c b/www/nginx-devel/files/extra-patch-ngx_nats.c
new file mode 100644
index 000000000000..76c3f2be7864
--- /dev/null
+++ b/www/nginx-devel/files/extra-patch-ngx_nats.c
@@ -0,0 +1,20 @@
+--- ../nginx-nats-6f7adf1/src/ngx_nats.c.orig 2025-07-25 14:52:57.670444000 -0400
++++ ../nginx-nats-6f7adf1/src/ngx_nats.c 2025-07-25 14:53:04.538387000 -0400
+@@ -55,7 +55,7 @@
+ * we can use for uniqueness and to reach the router in testing.
+ */
+
+-#if (NGX_LINUX) || (NGX_DARWIN)
++#if (NGX_LINUX) || (NGX_DARWIN) || (NGX_FREEBSD)
+ #include <net/if.h>
+ #include <ifaddrs.h>
+ #elif (NGX_WIN32)
+@@ -585,7 +585,7 @@
+ {
+ /* TODO: port to Windows when need it, extend to other platforms. */
+
+-#if (NGX_LINUX) || (NGX_DARWIN)
++#if (NGX_LINUX) || (NGX_DARWIN) || (NGX_FREEBSD)
+
+ struct ifaddrs *ifaddrs, *ifa;
+ int rc, family;