[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: File 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,
Edgar

Comment by Andrejs Kozlovs [ 2019 Jun 04 ]

Fixed in:

  • 4.0.9rc1 7f7101156bb
  • 4.2.3rc1 9dd3723c9fc
  • 4.4.0alpha1 (trunk) 068e75ea733
Generated at Tue Apr 23 17:13:33 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.