[Lldb-commits] [lldb] r327413 - include locale.h in IOHandler.cpp

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 13 08:55:00 PDT 2018


Author: labath
Date: Tue Mar 13 08:55:00 2018
New Revision: 327413

URL: http://llvm.org/viewvc/llvm-project?rev=327413&view=rev
Log:
include locale.h in IOHandler.cpp

This is needed for the setlocale() call, and it seems that it is not
transitively pulled in for some build configurations.

Modified:
    lldb/trunk/source/Core/IOHandler.cpp

Modified: lldb/trunk/source/Core/IOHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/IOHandler.cpp?rev=327413&r1=327412&r2=327413&view=diff
==============================================================================
--- lldb/trunk/source/Core/IOHandler.cpp (original)
+++ lldb/trunk/source/Core/IOHandler.cpp Tue Mar 13 08:55:00 2018
@@ -67,6 +67,7 @@
 #include <assert.h>    // for assert
 #include <ctype.h>     // for isspace
 #include <errno.h>     // for EINTR, errno
+#include <locale.h>    // for setlocale
 #include <stdint.h>    // for uint32_t, UINT32_MAX
 #include <stdio.h>     // for size_t, fprintf, feof
 #include <string.h>    // for strlen




More information about the lldb-commits mailing list