aboutsummaryrefslogtreecommitdiff
path: root/source/Expression
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2019-08-07 06:15:01 +0000
committerHaibo Huang <hhb@google.com>2019-08-07 06:15:01 +0000
commitf24783f6df4eae3759c46bde0e3cf8be7208ab12 (patch)
tree9f8a795eaf09ceb8405bdb37e05c7ef533d242c5 /source/Expression
parent5aa7c12cec31de56a0ac667a98c7684d3886618a (diff)
downloadlldb-f24783f6df4eae3759c46bde0e3cf8be7208ab12.tar.gz
Detect HAVE_SYS_TYPES_H in lldb
Summary: After rL368069 I noticed that HAVE_SYS_TYPES_H is not defined in Platform.h, or anywhere else in lldb. This change fixes that. Reviewers: labath Subscribers: mgorny, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D65822 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@368125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Expression')
-rw-r--r--source/Expression/UserExpression.cpp2
-rw-r--r--source/Expression/UtilityFunction.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/source/Expression/UserExpression.cpp b/source/Expression/UserExpression.cpp
index ea54cec7b..e2d1d2f2b 100644
--- a/source/Expression/UserExpression.cpp
+++ b/source/Expression/UserExpression.cpp
@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
+#include "lldb/Host/Config.h"
+
#include <stdio.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
diff --git a/source/Expression/UtilityFunction.cpp b/source/Expression/UtilityFunction.cpp
index eeaeca18d..aac8b33a6 100644
--- a/source/Expression/UtilityFunction.cpp
+++ b/source/Expression/UtilityFunction.cpp
@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
+#include "lldb/Host/Config.h"
+
#include <stdio.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>