[MacPorts] #64826: xar @1.8.0.482: fatal error: 'os/availability.h' file not found
MacPorts
noreply at macports.org
Tue Mar 15 04:11:31 UTC 2022
#64826: xar @1.8.0.482: fatal error: 'os/availability.h' file not found
-------------------------+-------------------------------------------------
Reporter: ryandesign | Owner: Schamschula
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: tiger leopard snowleopard lion
Port: xar | mountainlion mavericks yosemite elcapitan
-------------------------+-------------------------------------------------
Comment (by ryandesign):
The only place this is included is in xar.h.in
{{{
#ifdef __APPLE__
#import <os/availability.h>
#else
#define API_DEPRECATED(...)
#endif
}}}
Maybe instead it could be something like (untested):
{{{
#ifdef __APPLE__
#include <AvailabilityMacros.h>
#endif
#if defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101200
#import <os/availability.h>
#else
#define API_DEPRECATED(...)
#endif
}}}
--
Ticket URL: <https://trac.macports.org/ticket/64826#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list