Index: base/linux_util.h |
diff --git a/base/linux_util.h b/base/linux_util.h |
index 0e079d787cf4079ca114e060f69707e9700d4501..de597db2ed2257774bcaf8bf65bb5588f26d8fde 100644 |
--- a/base/linux_util.h |
+++ b/base/linux_util.h |
@@ -19,26 +19,27 @@ static const char kFindInodeSwitch[] = "--find-inode"; |
// This is declared here so the crash reporter can access the memory directly |
// in compromised context without going through the standard library. |
-extern char g_linux_distro[]; |
+BASE_API extern char g_linux_distro[]; |
// Get the Linux Distro if we can, or return "Unknown". |
-std::string GetLinuxDistro(); |
+BASE_API std::string GetLinuxDistro(); |
// Set the Linux Distro string. |
-void SetLinuxDistro(const std::string& distro); |
+BASE_API void SetLinuxDistro(const std::string& distro); |
// Return the inode number for the UNIX domain socket |fd|. |
BASE_API bool FileDescriptorGetInode(ino_t* inode_out, int fd); |
// Find the process which holds the given socket, named by inode number. If |
// multiple processes hold the socket, this function returns false. |
-bool FindProcessHoldingSocket(pid_t* pid_out, ino_t socket_inode); |
+BASE_API bool FindProcessHoldingSocket(pid_t* pid_out, ino_t socket_inode); |
// For a given process |pid|, look through all its threads and find the first |
// thread with /proc/[pid]/task/[thread_id]/syscall whose first N bytes matches |
// |expected_data|, where N is the length of |expected_data|. |
// Returns the thread id or -1 on error. |
-pid_t FindThreadIDWithSyscall(pid_t pid, const std::string& expected_data); |
+BASE_API pid_t FindThreadIDWithSyscall(pid_t pid, |
+ const std::string& expected_data); |
} // namespace base |