Skip to content

Commit 7483d1a

Browse files
committed
feat(container): hack for missing defines in Zephyr
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
1 parent dbcaad6 commit 7483d1a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/ocre/include/ocre/container.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@
99
#define OCRE_CONTAINER_H
1010

1111
#include <stdbool.h>
12+
#include <unistd.h>
13+
14+
/* Hack until Zephyr define those */
15+
#ifndef STDIN_FILENO
16+
#define STDIN_FILENO 0
17+
#endif
18+
19+
#ifndef STDOUT_FILENO
20+
#define STDOUT_FILENO 1
21+
#endif
22+
23+
#ifndef STDERR_FILENO
24+
#define STDERR_FILENO 2
25+
#endif
1226

1327
/**
1428
* @brief The possible status of a container

0 commit comments

Comments
 (0)