bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Bruno Haible
Subject: Re: gnulib fails for build on Mac OS X 10.4: get_ppid_of.c:36:22: error: libproc.h: No such file or directory
Date: Sat, 18 Dec 2021 16:57:02 +0100

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/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]