[Lldb-commits] [lldb] r247114 - Prevent from a redefinition of _GLIBCXX_USE_NANOSLEEP

Stephane Sezer via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 8 18:17:24 PDT 2015


Author: sas
Date: Tue Sep  8 20:17:24 2015
New Revision: 247114

URL: http://llvm.org/viewvc/llvm-project?rev=247114&view=rev
Log:
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 at gmx.com>

Modified:
    lldb/trunk/source/Host/posix/PipePosix.cpp

Modified: lldb/trunk/source/Host/posix/PipePosix.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/posix/PipePosix.cpp?rev=247114&r1=247113&r2=247114&view=diff
==============================================================================
--- lldb/trunk/source/Host/posix/PipePosix.cpp (original)
+++ lldb/trunk/source/Host/posix/PipePosix.cpp Tue Sep  8 20:17:24 2015
@@ -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>




More information about the lldb-commits mailing list