Skip to content

Commit

Permalink
pkg/ccn-lite: fix compilation on native
Browse files Browse the repository at this point in the history
Add an include path to RIOT's `<endian.h>`, as the one provided
by glibc does not expose the function implemented by `<endian.h>` by
default.
  • Loading branch information
maribu committed Jan 31, 2024
1 parent 4c7dfb6 commit a307f15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ccn-lite/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ INCLUDES += -I$(PKGDIRBASE)/ccn-lite/src/ccnl-core/include
INCLUDES += -I$(PKGDIRBASE)/ccn-lite/src/ccnl-pkt/include
INCLUDES += -I$(PKGDIRBASE)/ccn-lite/src/ccnl-fwd/include

# On native, otherwise glibc's <endian.h> is used rather than RIOT's.
INCLUDES += -I$(RIOTBASE)/sys/libc/include

CFLAGS += -DCCNL_RIOT
ARCHIVES += $(BINDIR)/ccn-lite.a

0 comments on commit a307f15

Please sign in to comment.