[Lldb-commits] [lldb] 1db2888 - [lldb] Remove some nanosleep preprocessor magic
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 16 12:08:14 PST 2021
Author: Pavel Labath
Date: 2021-02-16T21:07:57+01:00
New Revision: 1db2888e70709930da6c22ab83706c7695962ace
URL: https://github.com/llvm/llvm-project/commit/1db2888e70709930da6c22ab83706c7695962ace
DIFF: https://github.com/llvm/llvm-project/commit/1db2888e70709930da6c22ab83706c7695962ace.diff
LOG: [lldb] Remove some nanosleep preprocessor magic
It's obsolete, as we use (portable) std::this_thread::sleep_for now.
Added:
Modified:
lldb/source/Host/posix/PipePosix.cpp
Removed:
################################################################################
diff --git a/lldb/source/Host/posix/PipePosix.cpp b/lldb/source/Host/posix/PipePosix.cpp
index 7cd05a1ad2eb..2ccf0007a770 100644
--- a/lldb/source/Host/posix/PipePosix.cpp
+++ b/lldb/source/Host/posix/PipePosix.cpp
@@ -12,13 +12,6 @@
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/Errno.h"
#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