Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed build error with nginx >= 1.23.0 #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lianglli
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant