diff options
| author | Simon Glass <[email protected]> | 2022-02-28 12:08:21 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-04-06 14:01:42 -0400 |
| commit | 64aefc4800b7fb09d179ab1f0ede0363cff27856 (patch) | |
| tree | d9d5ea1990d09c14012dcf6092f6a29e82385eb3 /include | |
| parent | 3390948c0f5b51f5aa3bdaadebeda0b81a9ac0bd (diff) | |
errno: Avoid including strings in SPL
At present the header file defines this function in SPL but the file may
not actually be built. This causes a build error if the option is enabled.
Fix the condition in the header file.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/errno.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/errno.h b/include/errno.h index 652ad673068..5a8816d0a1d 100644 --- a/include/errno.h +++ b/include/errno.h @@ -25,7 +25,7 @@ extern int errno __errno_asm_label; * Return: string describing the error. If CONFIG_ERRNO_STR is not * defined an empty string is returned. */ -#ifdef CONFIG_ERRNO_STR +#if CONFIG_IS_ENABLED(ERRNO_STR) const char *errno_str(int errno); #else static const char error_message[] = ""; |
