I asked: > What solution can you offer so that > - in < 10.5, we have no error, > - in >= 10.5, proc_pidinfo gets used?
Would this work?
int proc_pidinfo (int, int, uint64_t, void *, int) WEAK_IMPORT_ATTRIBUTE;
if (proc_pidinfo != NULL)
{
... code that invokes proc_pidinfo ...
}
Based on [1].
Bruno
[1]
https://opensource.apple.com/source/dyld/dyld-44.17/unit-tests/test-cases/weak-symbol/
