Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
check for SO_ATTACH_REUSEPORT_CBPF decl
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFrench committed Feb 7, 2019
1 parent cdf1b96 commit 3ab8322
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/example_locality.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
#include <evhtp/thread.h>
#include <evhtp/evhtp.h>

#ifndef SO_ATTACH_REUSEPORT_CBPF
#define SO_ATTACH_REUSEPORT_CBPF 51
#endif

#define CPU__COUNT sysconf(_SC_NPROCESSORS_ONLN)

static int _init = 0;
Expand Down
4 changes: 4 additions & 0 deletions examples/reuse_thread_svr.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
#include <evhtp/thread.h>
#include <evhtp/evhtp.h>

#ifndef SO_ATTACH_REUSEPORT_CBPF
#define SO_ATTACH_REUSEPORT_CBPF 51
#endif

#define CPU__COUNT sysconf(_SC_NPROCESSORS_ONLN)

static int _init = 0;
Expand Down

0 comments on commit 3ab8322

Please sign in to comment.