[Lldb-commits] [lldb] f57b35a - [lldb][tests] Posix function strdup requires macro _POSIX_C_SOURCE
Tatyana Krasnukha via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 26 07:49:57 PST 2019
Author: Tatyana Krasnukha
Date: 2019-12-26T18:49:34+03:00
New Revision: f57b35af2f00791d1203080c43ca1d87db6cad41
URL: https://github.com/llvm/llvm-project/commit/f57b35af2f00791d1203080c43ca1d87db6cad41
DIFF: https://github.com/llvm/llvm-project/commit/f57b35af2f00791d1203080c43ca1d87db6cad41.diff
LOG: [lldb][tests] Posix function strdup requires macro _POSIX_C_SOURCE
Added:
Modified:
lldb/packages/Python/lldbsuite/test/functionalities/exec/main.cpp
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/exec/main.cpp b/lldb/packages/Python/lldbsuite/test/functionalities/exec/main.cpp
index 4475bbe4452f..bec470fd13ef 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/exec/main.cpp
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/exec/main.cpp
@@ -1,3 +1,5 @@
+#define _POSIX_C_SOURCE 200809L
+
#include <cstdio>
#include <cstdlib>
#include <cstring>
More information about the lldb-commits
mailing list