Only include ucontext.h when necessary.

Change-Id: I29014f6c6b82e0a9797e5d76147b3c4e3d82a7f5
This commit is contained in:
Christopher Ferris 2014-05-09 16:59:06 -07:00
parent b49f23ed31
commit c58287d601
4 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@
#include <string.h>
#include <sys/ptrace.h>
#include <sys/types.h>
#include <ucontext.h>
#include <unistd.h>
#include <string>

View File

@ -21,7 +21,6 @@
#include <backtrace/BacktraceMap.h>
#include <sys/types.h>
#include <ucontext.h>
class BacktraceImpl {
public:

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
#include <sys/ucontext.h>
#include <sys/types.h>
#include <ucontext.h>
#include <backtrace/Backtrace.h>
#include <backtrace/BacktraceMap.h>

View File

@ -19,6 +19,7 @@
#include <sys/types.h>
#include <string.h>
#include <ucontext.h>
#include <libunwind.h>
#include <libunwind-ptrace.h>