Skip to content

Commit

Permalink
lib: system: freertos: Add metal/errno.h to match standalone
Browse files Browse the repository at this point in the history
As lib/system/generic/sys.h has metal/errno.h add this to the freertos
equivalent.

This fixes some compilation issues when linking against certain FreeRTOS port
BSPs.

Signed-off-by: Ben Levinsky <ben.levinsky@amd.com>
  • Loading branch information
bentheredonethat authored and arnopo committed Sep 11, 2023
1 parent 548f642 commit 6d571fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/system/freertos/sys.h
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved.
* Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
Expand All @@ -16,6 +17,8 @@
#ifndef __METAL_FREERTOS_SYS__H__
#define __METAL_FREERTOS_SYS__H__

#include <metal/errno.h>

#include "./@PROJECT_MACHINE@/sys.h"

#ifdef __cplusplus
Expand Down

0 comments on commit 6d571fd

Please sign in to comment.