| 1 | This should be fixed and the patch dropped in Linux 6.9, see: |
| 2 | https://lore.kernel.org/bpf/[email protected]/ |
| 3 | -- |
| 4 | |
| 5 | |
| 6 | |
| 7 | #include "json_writer.h" |
| 8 | #include "main.h" |
| 9 | |
| 10 | +#define basename(path) (strrchr((path),'/') ? strrchr((path),'/')+1 : (path)) |
| 11 | + |
| 12 | #define MAX_OBJ_NAME_LEN 64 |
| 13 | |
| 14 | static void sanitize_identifier(char *name) |