[MacPorts] #68154: opensc @0.23.0: error: implicit declaration of function 'strnlen' is invalid in C99
MacPorts
noreply at macports.org
Sun Sep 17 19:42:19 UTC 2023
#68154: opensc @0.23.0: error: implicit declaration of function 'strnlen' is
invalid in C99
-------------------------+-------------------------
Reporter: ryandesign | Owner: mascguy
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: fixed | Keywords: snowleopard
Port: opensc |
-------------------------+-------------------------
Comment (by jmroot):
It doesn't look like this is actually fixed:
https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/171680/steps
/install-port/logs/stdio
{{{
openpgp-tool-helpers.c:200:24: warning: implicit declaration of function
'strnlen' is invalid in C99 [-Wimplicit-function-declaration]
size_t used_length = strnlen(src, length) >> 1;
^
}}}
This file needs to `#include "common/compat_strnlen.h"`.
--
Ticket URL: <https://trac.macports.org/ticket/68154#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list