Skip to content

Does not build against nginx as of mid-2017 #34

Description

@jrwren

Author: Eran Kornblau erankor@gmail.com
Date: Thu Mar 2 08:46:00 2017 -0500

Added missing static specifiers.

As of the above commit, the ngx_udp_connect function is static (not exported) and so cannot be used by this library.

I don't know of a good fix, but if some suggests one to me I will attempt to implement it.

Currently I'm applying this patch to my nginx build.

diff -ru nginx-1.18.0/src/core/ngx_resolver.c nginx-1.18.0-jrw/src/core/ngx_resolver.c
--- nginx-1.18.0/src/core/ngx_resolver.c	2020-04-21 14:09:01.000000000 +0000
+++ nginx-1.18.0-jrw/src/core/ngx_resolver.c	2021-10-21 15:42:19.808367999 +0000
@@ -56,7 +56,7 @@
         ((u_char *) (n) - offsetof(ngx_resolver_node_t, node))
 
 
-static ngx_int_t ngx_udp_connect(ngx_resolver_connection_t *rec);
+ngx_int_t ngx_udp_connect(ngx_resolver_connection_t *rec);
 static ngx_int_t ngx_tcp_connect(ngx_resolver_connection_t *rec);
 
 
@@ -4397,7 +4397,7 @@
 }
 
 
-static ngx_int_t
+ngx_int_t
 ngx_udp_connect(ngx_resolver_connection_t *rec)
 {
     int                rc;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions