Skip to content

Commit

Permalink
Add linux/sched.h to list of libbpf.c includes
Browse files Browse the repository at this point in the history
This should hopefully fix compile errors on some ubuntu systems.

Also, reorders the includes according to clang-format

Signed-off-by: Brenden Blanco <[email protected]>
  • Loading branch information
drzaeus77 committed May 31, 2017
1 parent fa07345 commit a934c90
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/cc/libbpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,26 @@
#include <fcntl.h>
#include <limits.h>
#include <linux/bpf.h>
#include <linux/bpf_common.h>
#include <linux/if_packet.h>
#include <linux/pkt_cls.h>
#include <linux/perf_event.h>
#include <linux/pkt_cls.h>
#include <linux/rtnetlink.h>
#include <linux/sched.h>
#include <linux/unistd.h>
#include <linux/version.h>
#include <linux/bpf_common.h>
#include <net/ethernet.h>
#include <net/if.h>
#include <sched.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/resource.h>
#include <unistd.h>
#include <stdbool.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

#include "libbpf.h"
#include "perf_reader.h"
Expand Down

0 comments on commit a934c90

Please sign in to comment.