Skip to content

Commit

Permalink
Fix build on FreeBSD-13.0
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Rabson <[email protected]>
  • Loading branch information
dfr committed Jun 22, 2022
1 parent 0a2e0db commit 1750b2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/conn_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ static void bind_relative_to_dir(int dir_fd, int sock_fd, const char *path)
#endif

#ifdef __FreeBSD__

// FreeBSD earlier than 13.1-RELEASE doesn't have O_PATH
#ifndef O_PATH
#define O_PATH 0
#endif

static void bind_relative_to_dir(int dir_fd, int sock_fd, const char *path)
{
struct sockaddr_un addr;
Expand Down

0 comments on commit 1750b2d

Please sign in to comment.