Skip to content

Commit

Permalink
use std.net.has_unix_sockets to detect if unix sockets are supported
Browse files Browse the repository at this point in the history
  • Loading branch information
karlseguin committed Aug 11, 2024
1 parent 8a4523e commit 398e6da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/httpz.zig
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ pub fn Server(comptime H: type) type {
var no_delay = true;
const address = blk: {
if (config.unix_path) |unix_path| {
if (comptime builtin.os.tag == .windows) {
if (comptime std.net.has_unix_sockets == false) {
return error.UnixPathNotSupported;
}
no_delay = false;
Expand Down

0 comments on commit 398e6da

Please sign in to comment.