Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions include/bpftune/bpftune.bpf.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@

extern __u32 LINUX_KERNEL_VERSION __kconfig;

#ifndef NULL
#define NULL (0)
#endif

#define STATIC_ASSERT(x, msg) _Static_assert(x, msg)

#ifndef __bpf_printk
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ clean:
$(call QUIET_CLEAN, bpftune)
$(Q)$(RM) $(OPATH)*.o *.d $(OPATH)*.so*
$(Q)$(RM) *.o *.so*
$(Q)$(RM) *.skel.h
$(Q)$(RM) *.skel.*h
$(Q)$(RM) bpftune

distclean: clean
Expand Down
1 change: 0 additions & 1 deletion src/libbpftune.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ unsigned short bpftune_learning_rate;

#include <bpf/bpf.h>
#include <bpf/libbpf.h>
#include <bpf/libbpf_version.h>

#include "probe.skel.h"
#include "probe.skel.legacy.h"
Expand Down