lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #9010] Build unix port under Darwin


From: Simon Goldschmidt
Subject: [lwip-devel] [patch #9010] Build unix port under Darwin
Date: Wed, 25 May 2016 10:55:50 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36

Follow-up Comment #4, patch #9010 (project lwip):

You can't detect the presence of a header file while compiling. That would
require some kind of automake thing, and we don't want to make the unix
example port too complicated.

You can't use the absence of CLOCK_MONOTONIC to say you're running on Darwin!
Instead, is there a define to detect it? I know there is one for cygwin and
for linux...

As to the pthread function, I have no idea how to explicitly detect which
function to call... Making it depend on Darwin/not Darwin (to me) seems enough
for the use case of an example project.

And yes, I'd be willing to add that change. Unless auto-detection is
implemented, you can just change the makefile to say you're compiling for
darwin instead of linux (as is the case for BSD - I wonder if that's still
working or if we broke it)

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9010>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

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