Skip to content

Commit

Permalink
connect6: Change in6_pktinfo check
Browse files Browse the repository at this point in the history
musl does not define in6_pktinfo which causes a redefinition error.

musl checks against _BSD_SOURCE or _GNU_SOURCE. The latter implies the former.
  • Loading branch information
neheb authored Sep 27, 2019
1 parent d9404e3 commit c23a4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connect6.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#define PROGRAM "connect6"

#ifndef in6_pktinfo
#ifndef _BSD_SOURCE
struct in6_pktinfo {
struct in6_addr ipi6_addr;
int ipi6_ifindex;
Expand Down

0 comments on commit c23a4ef

Please sign in to comment.