Skip to content

Commit e30550f

Browse files
committed
make pthread_join work on the Mac
1 parent e341d5c commit e30550f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ansi-c/library/pthread_lib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,12 @@ inline int pthread_join(pthread_t thread, void **value_ptr)
344344
#define __CPROVER_ERRNO_H_INCLUDED
345345
#endif
346346

347-
#ifdef __APPLE_
347+
#ifdef __APPLE__
348348
extern __CPROVER_bool __CPROVER_threads_exited[];
349349
extern __CPROVER_thread_local unsigned long __CPROVER_thread_id;
350350
extern unsigned long __CPROVER_next_thread_id;
351351

352-
inline int pthread_join(pthread_t thread, void **value_ptr)
352+
inline int _pthread_join(pthread_t thread, void **value_ptr)
353353
{
354354
__CPROVER_HIDE:;
355355

0 commit comments

Comments
 (0)