Skip to content

Commit

Permalink
Merge pull request #50 from osmanrafiqss/issue-49
Browse files Browse the repository at this point in the history
Fixes #49 - use winsock.h on Windows
  • Loading branch information
dmlloyd authored Oct 25, 2023
2 parents 53e2f48 + 8bf032a commit 9b52f63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/wildfly/common/net/Substitutions.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ static final class NativeInfo {

static final class NativeInfoDirectives implements CContext.Directives {
public List<String> getHeaderFiles() {
if (Platform.includedIn(Platform.WINDOWS.class)) {
return Collections.singletonList("<winsock.h>");
}
return Collections.singletonList("<unistd.h>");
}
}
Expand Down

0 comments on commit 9b52f63

Please sign in to comment.