From: anonymix007 <48598263+anonymix007@users.noreply.github.com> Date: Wed, 6 Nov 2024 20:09:27 +0000 (+0300) Subject: fundamental: move string includes from chid-fundamental.c to header X-Git-Tag: v257-rc2~44^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d8d7d8e436170c1ceb4a04e62078e6e695eab1f;p=thirdparty%2Fsystemd.git fundamental: move string includes from chid-fundamental.c to header --- diff --git a/src/fundamental/chid-fundamental.c b/src/fundamental/chid-fundamental.c index 55b04fa2ab7..145bf408bc3 100644 --- a/src/fundamental/chid-fundamental.c +++ b/src/fundamental/chid-fundamental.c @@ -15,12 +15,10 @@ */ #if SD_BOOT -# include "efi-string.h" # include "util.h" #else # include # include -# include # include #define strsize16(str) ((char16_strlen(str) + 1) * sizeof(char16_t)) #endif diff --git a/src/fundamental/chid-fundamental.h b/src/fundamental/chid-fundamental.h index e8c5c1add28..1e582932fd2 100644 --- a/src/fundamental/chid-fundamental.h +++ b/src/fundamental/chid-fundamental.h @@ -2,6 +2,12 @@ #pragma once +#if SD_BOOT +# include "efi-string.h" +#else +# include +#endif + #include "efi-fundamental.h" #include "string-util-fundamental.h"