X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Ferrno.h;h=ccb7869e1708cde503bb0ac6e32584c51e45d40b;hb=9629ccdde79adb1e471cfb24d9fee9f5c6c94aa6;hp=39426818e0c6215aa91b286c8c26906e468dac0a;hpb=00e9e6d1ffb9786a7ca42cc41f5320303c1ab84f;p=oweals%2Fu-boot.git diff --git a/include/errno.h b/include/errno.h index 39426818e0..ccb7869e17 100644 --- a/include/errno.h +++ b/include/errno.h @@ -1,13 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2014 Samsung Electronics * Przemyslaw Marczak - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _ERRNO_H #define _ERRNO_H -#include +#include extern int errno; @@ -15,5 +14,10 @@ extern int errno; #ifdef CONFIG_ERRNO_STR const char *errno_str(int errno); +#else +static inline const char *errno_str(int errno) +{ + return 0; +} #endif #endif /* _ERRNO_H */