소스 검색

Fix build with old 3.11 simgrid

Samuel Thibault 8 년 전
부모
커밋
70e2293c61
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/common/thread.c

+ 3 - 0
src/common/thread.c

@@ -237,6 +237,9 @@ int starpu_pthread_key_delete(starpu_pthread_key_t key)
 
 /* We need it only when using smpi */
 #pragma weak smpi_process_get_user_data
+#if !HAVE_DECL_SMPI_PROCESS_SET_USER_DATA
+extern void *smpi_process_get_user_data();
+#endif
 
 int starpu_pthread_setspecific(starpu_pthread_key_t key, const void *pointer)
 {