summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/posix/PipePosix.cpp
diff options
context:
space:
mode:
authorStephane Sezer <sas@cd80.net>2015-09-09 01:17:24 +0000
committerStephane Sezer <sas@cd80.net>2015-09-09 01:17:24 +0000
commit4d640f2e3bddd8fb9987ad2756d9a66b8922966e (patch)
tree036e883f4411f28fcecae0263e80f4f61946de27 /lldb/source/Host/posix/PipePosix.cpp
parentacd68b58ae25e92e02a2b90b994bfa887d715855 (diff)
downloadbcm5719-llvm-4d640f2e3bddd8fb9987ad2756d9a66b8922966e.tar.gz
bcm5719-llvm-4d640f2e3bddd8fb9987ad2756d9a66b8922966e.zip
Prevent from a redefinition of _GLIBCXX_USE_NANOSLEEP
Summary: Build warning caught on NetBSD. Reviewers: joerg, sas Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12662 Change by Kamil Rytarowski <n54@gmx.com> llvm-svn: 247114
Diffstat (limited to 'lldb/source/Host/posix/PipePosix.cpp')
-rw-r--r--lldb/source/Host/posix/PipePosix.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Host/posix/PipePosix.cpp b/lldb/source/Host/posix/PipePosix.cpp
index 8fdf97f2718..004c85e10b0 100644
--- a/lldb/source/Host/posix/PipePosix.cpp
+++ b/lldb/source/Host/posix/PipePosix.cpp
@@ -14,8 +14,10 @@
#include "llvm/Support/FileSystem.h"
#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8))
+#ifndef _GLIBCXX_USE_NANOSLEEP
#define _GLIBCXX_USE_NANOSLEEP
#endif
+#endif
#include <functional>
#include <thread>
OpenPOWER on IntegriCloud