influxdata / nginx-influxdb-module

MIT License
39 stars 13 forks source link

Fixed build error with nginx >= 1.23.0 #24

Open lianglli opened 1 year ago

lianglli commented 1 year ago

In file included from src/event/ngx_event.h:565:0, from src/http/ngx_http_upstream.h:14, from src/http/ngx_http.h:37, from /tmp/build/nginx-influxdb-module-/src/ngx_http_influxdb_metric.c:7: src/event/ngx_event_udp.h:38:27: error: field 'pkt6' has incomplete type struct in6_pktinfo pkt6;

The issue is caused by nginx-influxdb-module including system headers prior to nginx ones. In this particular case, it leads to undefined GNU_SOURCE macro and thus missing type declaration.