[ZBX-16142] Missing sys/ioctl.h from src/libs/zbxsysinfo/openbsd/net.c Created: 2019 May 18 Updated: 2024 Apr 10 Resolved: 2019 Jun 08 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 4.2.1 |
Fix Version/s: | 4.0.10rc1, 4.2.4rc1, 4.4.0alpha1, 4.4 (plan) |
Type: | Patch request | Priority: | Trivial |
Reporter: | Andrea Biscuola | Assignee: | Andrejs Kozlovs |
Resolution: | Fixed | Votes: | 1 |
Labels: | patch | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
OpenBSD 6.5 |
Attachments: | net.c.diff |
Team: | Team A |
Sprint: | Sprint 52 (May 2019), Sprint 53 (Jun 2019) |
Story Points: | 0.125 |
Description |
Compiling zabbix on OpenBSD with theĀ -Wimplicit-function-declaration give this: if (ioctl(if_s, SIOCGIFDATA, &ifr) < 0) ^ net.c:169:7: warning: this function declaration is not a prototype The cause is a missing include of the sys/ioctl.h header |
Comments |
Comment by Edgar Akhmetshin [ 2019 May 18 ] |
Hello Andrea, Reproduced with OpenBSD 6.5, thank you for reporting the issue. Regards, |
Comment by Andrejs Kozlovs [ 2019 Jun 04 ] |
Fixed in:
|