Skip to content

Commit

Permalink
Shouldn't include pthread.h directly in user_malloc.c (j256#59)
Browse files Browse the repository at this point in the history
but include THREAD_INCLUDE instead just like chunk_loc.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I6b45871351c8effc3a4057ca14152bf078d4dc41
  • Loading branch information
xiaoxiang781216 committed Apr 19, 2021
1 parent 45c7439 commit ca284f3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions user_malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,8 @@
#endif

#if LOCK_THREADS
#if HAVE_PTHREAD_H
#include <pthread.h>
#endif
#if HAVE_PTHREADS_H
#include <pthreads.h>
#ifdef THREAD_INCLUDE
#include THREAD_INCLUDE
#endif
#endif

Expand Down

0 comments on commit ca284f3

Please sign in to comment.