[compiler-rt] r267710 - tsan: fix build

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 05:59:35 PDT 2016


Author: dvyukov
Date: Wed Apr 27 07:59:35 2016
New Revision: 267710

URL: http://llvm.org/viewvc/llvm-project?rev=267710&view=rev
Log:
tsan: fix build 

error: implicit declaration of function 'abort' is invalid in C99


Modified:
    compiler-rt/trunk/lib/tsan/go/test.c

Modified: compiler-rt/trunk/lib/tsan/go/test.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/go/test.c?rev=267710&r1=267709&r2=267710&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/go/test.c (original)
+++ compiler-rt/trunk/lib/tsan/go/test.c Wed Apr 27 07:59:35 2016
@@ -12,6 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <stdio.h>
+#include <stdlib.h>
 
 void __tsan_init(void **thr, void **proc, void (*cb)(long, void*));
 void __tsan_fini();




More information about the llvm-commits mailing list