[Lldb-commits] [PATCH] D12662: Prevent from a redefinition of _GLIBCXX_USE_NANOSLEEP

Kamil Rytarowski via lldb-commits lldb-commits at lists.llvm.org
Sat Sep 5 07:03:30 PDT 2015


krytarowski created this revision.
krytarowski added a reviewer: joerg.
krytarowski added a subscriber: lldb-commits.
krytarowski set the repository for this revision to rL LLVM.

Build warning caught on NetBSD.

Repository:
  rL LLVM

http://reviews.llvm.org/D12662

Files:
  source/Host/posix/PipePosix.cpp

Index: source/Host/posix/PipePosix.cpp
===================================================================
--- source/Host/posix/PipePosix.cpp
+++ 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>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12662.34109.patch
Type: text/x-patch
Size: 444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150905/947431e5/attachment.bin>


More information about the lldb-commits mailing list