Skip to content

Commit

Permalink
fix(bpf): fix missing definitions
Browse files Browse the repository at this point in the history
Signed-off-by: therealbobo <[email protected]>
  • Loading branch information
therealbobo committed May 17, 2024
1 parent 54f46c4 commit e24fdad
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions driver/bpf/fillers.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,8 @@ or GPL2.txt for full copies of the license.
* Linux 5.6 kernels no longer include the old 32-bit timeval
* structures. But the syscalls (might) still use them.
*/
#include <linux/time32.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
#include <linux/time64.h>
struct compat_timespec {
int32_t tv_sec;
int32_t tv_nsec;
};

struct timespec {
int32_t tv_sec;
int32_t tv_nsec;
Expand All @@ -50,6 +45,7 @@ struct timeval {
};
#else
#define timeval64 timeval
#define old_timespec32 compat_timespec
#endif

#define FILLER_RAW(x) \
Expand Down

0 comments on commit e24fdad

Please sign in to comment.