Re: gnulib fails for build on Mac OS X 10.4: get_ppid_of.c:36:22: error:

2021-12-22 Thread Ken Cunningham
> On Dec 22, 2021, at 7:23 AM, Bruno Haible wrote: > > 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 cas

Re: gnulib fails for build on Mac OS X 10.4: get_ppid_of.c:36:22: error:

2021-12-22 Thread Ken Cunningham
In < https://opensource.apple.com/source/xnu/xnu-2422.1.72/libsyscall/wrappers/libproc/libproc.h.auto.html> we see this: int proc_pidinfo(int pid, int flavor, uint64_t arg, void *buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); it is this part here: __OSX_AVAILABLE_

Re: gnulib fails for build on Mac OS X 10.4: get_ppid_of.c:36:22: error:

2021-12-21 Thread Ken Cunningham
> 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 p