Skip to content

Commit

Permalink
Implement JVM_HostName, required for various options of Inet*Address.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Sep 12, 2023
1 parent 6b53b1a commit 0e1664e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libjvm/jvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3421,7 +3421,7 @@ jint JNICALL JVM_SetSockOpt(jint fd, int level, int optname, const char* optval,

int JNICALL JVM_GetHostName(char* name, int namelen)
{
return 0;
return gethostname(name, namelen);
}

void* JNICALL JVM_LoadLibrary(const char* name)
Expand Down

0 comments on commit 0e1664e

Please sign in to comment.