Ken Cunningham: > So that is why with the usual SDK usage on macOS systems, you don't > have to add the weak linking macros yourself, in most cases.
Your proposed approach may work "in most cases", but not in this one. I said in the previous mail that I tried omitting the line extern int proc_pidinfo (int, int, uint64_t, void *, int) WEAK_IMPORT_ATTRIBUTE; and that it did not produce the appropriate code. Despite -DMAC_OS_X_VERSION_MAX_ALLOWED=1090 -DMAC_OS_X_VERSION_MIN_REQUIRED=1040 it produced code that would *not* run on Mac OS X 10.4. Bruno