Description
(I'm putting this here so the change doesn't get lost.)
In direwolf.h, the APPLE define has to be after:
#include <pthread.h>
(Line 130 in the file, before this change.)
pthread.h pulls in <sys/cdefs.h>, which redefines __DARWIN_C_LEVEL back to ansi, which breaks things.
Diff for the corrected file, against 7247099:
➜ direwolf git:(dev) ✗ diff direwolf_7247099.h direwolf.h
34,46d33
<
< #ifdef APPLE
<
< // https://groups.yahoo.com/neo/groups/direwolf_packet/conversations/messages/2072
<
< // I think we should put it here, so it will apply to all files,
< // rather than only in ptt.c.
<
< #define __DARWIN_C_LEVEL __DARWIN_C_FULL
<
< #endif
<
<
132a120,130
#ifdef APPLE
// https://groups.yahoo.com/neo/groups/direwolf_packet/conversations/messages/2072
// I think we should put it here, so it will apply to all files,
// rather than only in ptt.c.#define __DARWIN_C_LEVEL __DARWIN_C_FULL
#endif