Skip to content

Commit

Permalink
fix: macos build (#3536)
Browse files Browse the repository at this point in the history
* define IOV_MAX on macos if it's not defined

---------

Signed-off-by: kostas <[email protected]>
  • Loading branch information
kostasrim authored Aug 21, 2024
1 parent 54cf6f0 commit 51f6bbe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/facade/reply_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
#include "facade/error.h"
#include "util/fibers/proactor_base.h"

#ifdef __APPLE__
#ifndef UIO_MAXIOV
// Some versions of MacOSX dont have IOV_MAX
#define UIO_MAXIOV 1024
#endif
#endif

using namespace std;
using absl::StrAppend;
using namespace double_conversion;
Expand Down

0 comments on commit 51f6bbe

Please sign in to comment.