Skip to content

Commit

Permalink
Merge pull request #308 from christianrondeau/termux
Browse files Browse the repository at this point in the history
Add SUN_LEN when not defined (termux)
  • Loading branch information
bcopeland authored May 24, 2017
2 parents b8b20ea + dfd7ea2 commit 670acab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
#include <sys/param.h>
#endif

#if !defined(SUN_LEN)
#define SUN_LEN(su) \
(sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
#endif

#if !defined(__linux__) && !defined(__CYGWIN__)
#define SOCKET_SEND_PID 1
struct ucred {
Expand Down

0 comments on commit 670acab

Please sign in to comment.