[Lldb-commits] [lldb] r216227 - Fix compile error on Linux due to previous commit.

Zachary Turner zturner at google.com
Thu Aug 21 14:02:47 PDT 2014


Author: zturner
Date: Thu Aug 21 16:02:47 2014
New Revision: 216227

URL: http://llvm.org/viewvc/llvm-project?rev=216227&view=rev
Log:
Fix compile error on Linux due to previous commit.

Modified:
    lldb/trunk/include/lldb/Host/posix/HostInfoPosix.h
    lldb/trunk/source/Host/linux/HostInfoLinux.cpp
    lldb/trunk/source/Host/posix/HostInfoPosix.cpp

Modified: lldb/trunk/include/lldb/Host/posix/HostInfoPosix.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/posix/HostInfoPosix.h?rev=216227&r1=216226&r2=216227&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/posix/HostInfoPosix.h (original)
+++ lldb/trunk/include/lldb/Host/posix/HostInfoPosix.h Thu Aug 21 16:02:47 2014
@@ -22,8 +22,8 @@ class HostInfoPosix : public HostInfoBas
   public:
     static size_t GetPageSize();
     static bool GetHostname(std::string &s);
-    static bool LookupUserName(uint32_t uid, std::string &user_name);
-    static bool LookupGroupName(uint32_t gid, std::string &group_name);
+    static const char *LookupUserName(uint32_t uid, std::string &user_name);
+    static const char *LookupGroupName(uint32_t gid, std::string &group_name);
 
   protected:
     static bool ComputeSupportExeDirectory(FileSpec &file_spec);

Modified: lldb/trunk/source/Host/linux/HostInfoLinux.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/linux/HostInfoLinux.cpp?rev=216227&r1=216226&r2=216227&view=diff
==============================================================================
--- lldb/trunk/source/Host/linux/HostInfoLinux.cpp (original)
+++ lldb/trunk/source/Host/linux/HostInfoLinux.cpp Thu Aug 21 16:02:47 2014
@@ -10,6 +10,7 @@
 #include "lldb/Core/Log.h"
 #include "lldb/Host/linux/HostInfoLinux.h"
 
+#include <limits.h>
 #include <stdio.h>
 #include <string.h>
 #include <sys/utsname.h>

Modified: lldb/trunk/source/Host/posix/HostInfoPosix.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/posix/HostInfoPosix.cpp?rev=216227&r1=216226&r2=216227&view=diff
==============================================================================
--- lldb/trunk/source/Host/posix/HostInfoPosix.cpp (original)
+++ lldb/trunk/source/Host/posix/HostInfoPosix.cpp Thu Aug 21 16:02:47 2014
@@ -47,7 +47,7 @@ HostInfoPosix::GetHostname(std::string &
     return false;
 }
 
-bool
+const char *
 HostInfoPosix::LookupUserName(uint32_t uid, std::string &user_name)
 {
     struct passwd user_info;
@@ -66,7 +66,7 @@ HostInfoPosix::LookupUserName(uint32_t u
     return NULL;
 }
 
-bool
+const char *
 HostInfoPosix::LookupGroupName(uint32_t gid, std::string &group_name)
 {
     char group_buffer[PATH_MAX];





More information about the lldb-commits mailing list