Skip to content

Commit

Permalink
simplify macro check for enabling unix domain socket (Netflix-Skunkwo…
Browse files Browse the repository at this point in the history
  • Loading branch information
copperlight authored Oct 19, 2023
1 parent 435cbff commit 10b11e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/spectatord_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ ABSL_FLAG(PortNumber, statsd_port, PortNumber(8125),
"Port number for the statsd socket.");
ABSL_FLAG(PortNumber, admin_port, PortNumber(1234),
"Port number for the admin server.");
#if defined(__APPLE__) || defined(_WIN32)
ABSL_FLAG(bool, enable_socket, false,
#ifdef __linux__
ABSL_FLAG(bool, enable_socket, true,
"Enable UNIX domain socket support. Default is true on Linux and false "
"on MacOS and Windows.");
#else
ABSL_FLAG(bool, enable_socket, true,
ABSL_FLAG(bool, enable_socket, false,
"Enable UNIX domain socket support. Default is true on Linux and false "
"on MacOS and Windows.");
#endif
Expand Down

0 comments on commit 10b11e7

Please sign in to comment.