There are sysctlbyname calls in libcec-libcec-4.0.2/src/libcec/adapter/Pulse-Eight/USBCECAdapterDetection.cpp which depend on the respective headers (sys/types.h, sys/sysctl.h), which in turn are not #include'd when the port is built with udev present. An easy, non-portable, fix is to just include the #if __FreeBSD__ #includes in the UDEV conditional, too.
Created attachment 181665 [details] patch
(In reply to holindho from comment #0) Simply including sys/sysctl.h will be enough to build with UDEV.
Created attachment 181734 [details] patch Bump PORTREVISION is not required.
Created attachment 182175 [details] patch
Mikael, Do you approve this change? Please, set (+) to approve the attachment.
Already done 2017-05-04 09:28:53 CEST, Flags: maintainer-feedback?(mikael.urankar@gmail.com) → maintainer-feedback+ I approve the change ;)
ha sorry I don't know what I'm doing, too much buttons to click on bugzilla. the patch is approved now :)
A commit references this bug: Author: cpm Date: Fri May 5 18:46:01 UTC 2017 New revision: 440201 URL: https://svnweb.freebsd.org/changeset/ports/440201 Log: - Add patch to fix libcec build when udev is present PR: 218525 Submitted by: cpm Reported by: holindho@saunalahti.fi Approved by: Mikael Urankar <mikael.urankar@gmail.com> (maintainer) Changes: head/multimedia/libcec/files/patch-src_libcec_adapter_Pulse-Eight_USBCECAdapterDetection.cpp
Committed! Thanks