From: Andrei Tatar Date: Thu, 4 May 2023 08:41:57 +0000 (+0200) Subject: Include musl's own headers when building X-Git-Tag: RELEASE-0.14.0~18 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=643ab4882ed4704ca92775ea28bb032a4fa4b36b;p=unikraft%2Flibs%2Fmusl.git Include musl's own headers when building This fixes a build error where an internal use of `prctl` fails due to a missing prototype declaration. Signed-off-by: Andrei Tatar Reviewed-by: Rares Miculescu Reviewed-by: Stefan Jumarea Reviewed-by: Razvan Deaconescu Approved-by: Eduard Vintilă Tested-by: Unikraft CI GitHub-Closes: #45 --- diff --git a/Makefile.rules b/Makefile.rules index d7f5fc7..92a3d8f 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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)