[PATCH] Add FreeBSD support to the address sanitizer's waitid.cc test case

Viktor Kutuzov vkutuzov at accesssoftek.com
Tue Jul 8 05:57:12 PDT 2014


Hi kcc, samsonov,

http://reviews.llvm.org/D4422

Files:
  test/asan/TestCases/Posix/waitid.cc

Index: test/asan/TestCases/Posix/waitid.cc
===================================================================
--- test/asan/TestCases/Posix/waitid.cc
+++ test/asan/TestCases/Posix/waitid.cc
@@ -5,6 +5,10 @@
 #include <sys/wait.h>
 #include <unistd.h>
 
+#if defined(__FreeBSD__)
+#include <signal.h>  // for siginfo_t
+#endif
+
 int main(int argc, char **argv) {
   pid_t pid = fork();
   if (pid) { // parent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4422.11160.patch
Type: text/x-patch
Size: 411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140708/7476964a/attachment.bin>


More information about the llvm-commits mailing list