Skip to content

Commit

Permalink
erts: Fix pthread_setname_np warning on osx
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Mar 18, 2016
1 parent cee5b75 commit 0988d9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions erts/include/internal/ethread.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ int ethr_assert_failed(const char *file, int line, const char *func, char *a);
#error "_GNU_SOURCE not defined. Please, compile all files with -D_GNU_SOURCE."
#endif

#ifdef ETHR_HAVE_PTHREAD_SETNAME_NP_1
#define _DARWIN_C_SOURCE
#endif

#if defined(ETHR_NEED_NPTL_PTHREAD_H)
#include <nptl/pthread.h>
#elif defined(ETHR_HAVE_MIT_PTHREAD_H)
Expand Down

0 comments on commit 0988d9a

Please sign in to comment.