소스 검색

dont include atexit() if uClibc doesnt support it

Mike Frysinger 20 년 전
부모
커밋
f15067a5ef
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      test/testsuite.h

+ 2 - 0
test/testsuite.h

@@ -70,7 +70,9 @@ void init_testsuite(const char* testname)
 	printf("%s", testname);
 	test_number = 0;
 	failures = 0;
+#if !defined(__UCLIBC__) || defined(__UCLIBC_DYNAMIC_ATEXIT__)
 	atexit(done_testing);
+#endif
 }
 
 #endif /* __NO_TESTCODE__ */