Skip to content

Commit

Permalink
WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
okuoku committed Apr 12, 2022
1 parent dbf1557 commit 71b521e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lldb/source/Host/common/SocketAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,21 @@

#include "lldb/Host/PosixApi.h"

// FIXME FIXME:

extern "C" {
const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
};

// WindowsXP needs an inet_ntop implementation
#ifdef _WIN32

#ifndef INET6_ADDRSTRLEN // might not be defined in older Windows SDKs
#define INET6_ADDRSTRLEN 46
#endif


// TODO: implement shortened form "::" for runs of zeros
const char *inet_ntop(int af, const void *src, char *dst, socklen_t size) {
if (size == 0) {
Expand Down
4 changes: 4 additions & 0 deletions llvm/cmake/modules/HandleLLVMOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ if (CMAKE_SYSTEM_NAME MATCHES "OS390")
set(LLVM_HAVE_LINK_VERSION_SCRIPT 0)
endif()

if(CMAKE_SYSTEM_NAME MATCHES "Emscripten")
set(LLVM_HAVE_LINK_VERSION_SCRIPT 0)
endif()

set(EXEEXT ${CMAKE_EXECUTABLE_SUFFIX})
set(LTDL_SHLIB_EXT ${CMAKE_SHARED_LIBRARY_SUFFIX})

Expand Down

0 comments on commit 71b521e

Please sign in to comment.