Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
[lsan] Allow using ucontext.h in the test on OSX.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213523 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ramosian-glider committed Jul 21, 2014
1 parent 2f62767 commit a13548a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/lsan/TestCases/swapcontext.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
// RUN: not %run %t foo 2>&1 | FileCheck %s

#include <stdio.h>
#if defined(__APPLE__)
// Note: ucontext.h is deprecated on OSX, so this test may stop working
// someday. We define _XOPEN_SOURCE to keep using ucontext.h for now.
#define _XOPEN_SOURCE 1
#endif
#include <ucontext.h>
#include <unistd.h>

Expand Down

0 comments on commit a13548a

Please sign in to comment.