Skip to content

Commit

Permalink
build: fix compile_commands.json generation (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeldtinoco committed Apr 21, 2023
1 parent 6d17d1a commit f00985b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ OUTPUT = ./output
SELFTEST = ./selftest
HELPERS = ./helpers

CC = gcc
CC = clang
CLANG = clang
GO = go
VAGRANT = vagrant
Expand All @@ -26,7 +26,7 @@ LIBBPF_OBJ = $(abspath ./$(OUTPUT)/libbpf.a)
LIBBPF_OBJDIR = $(abspath ./$(OUTPUT)/libbpf)
LIBBPF_DESTDIR = $(abspath ./$(OUTPUT))

CFLAGS = -g -O2 -Wall -fpie
CFLAGS = -g -O2 -Wall -fpie -I$(abspath $(OUTPUT))
LDFLAGS =

# golang
Expand Down
2 changes: 2 additions & 0 deletions libbpfgo.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
#define __SANE_USERSPACE_TYPES__ 1
#endif

#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <sys/resource.h>
#include <sys/syscall.h>
#include <unistd.h>
Expand Down

0 comments on commit f00985b

Please sign in to comment.