Skip to content

Commit

Permalink
Add note about getting sys/socket.h (#3055)
Browse files Browse the repository at this point in the history
As per this discussion: bpftrace/bpftrace#3054

Co-authored-by: Jordan Rome <jordalgo@fedoraproject.org>
  • Loading branch information
jordalgo and Jordan Rome authored Mar 15, 2024
1 parent 6dd6fbd commit d2f1379
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/tcpconnect.bt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#include <linux/socket.h>
#include <net/sock.h>
#else
/*
* Note: you may need to install the glibc-headers package or other package
* containing sys/socket.h, which contains the AF_INET and AF_INET6 macros
*/
#include <sys/socket.h>
#endif

Expand Down

0 comments on commit d2f1379

Please sign in to comment.