]> xenbits.xensource.com Git - unikraft/libs/musl.git/commitdiff
Include musl's own headers when building
authorAndrei Tatar <andrei@unikraft.io>
Thu, 4 May 2023 08:41:57 +0000 (10:41 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 1 Jun 2023 19:28:50 +0000 (19:28 +0000)
This fixes a build error where an internal use of `prctl` fails due to a
missing prototype declaration.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Rares Miculescu <miculescur@gmail.com>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #45

Makefile.rules

index d7f5fc7ec3d5b15a1e4ad42fe22cbd4d6d7b5674..92a3d8f27b4f77443766b989e0dc0d897c1a2d3a 100644 (file)
@@ -21,6 +21,7 @@ $(LIBMUSL_BUILD)/include/$(1)/%.h:
 # includes for building libmusl
 LIBMUSL_$(call uc,$(1))_INCLUDES-y += -I$(LIBMUSL_BUILD)/include/$(1)/src/internal
 LIBMUSL_$(call uc,$(1))_INCLUDES-y += -I$(LIBMUSL_BUILD)/include/$(1)/src/$(1)
+LIBMUSL_$(call uc,$(1))_INCLUDES-y += -I$(LIBMUSL_BUILD)/include/$(1)/include
 LIBMUSL_SRCS-y += $(3)
 LIBMUSL_CINCLUDES-y += $$(LIBMUSL_$(call uc,$(1))_INCLUDES-y)
 LIBMUSL_CXXINCLUDES-y += $$(LIBMUSL_$(call uc,$(1))_INCLUDES-y)