Skip to content

Commit 3636446

Browse files
authored
Merge pull request #852 from divinity76/fix-sys-errno
replace sys/errno.h with errno.h
2 parents 8a7189d + 44dc148 commit 3636446

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

apps/wolfsshd/wolfsshd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
#include <errno.h>
8080
#include <unix.h>
8181
#else
82-
#include <sys/errno.h>
82+
#include <errno.h>
8383
#endif
8484

8585
static volatile int ChildRunning = 0;

examples/echoserver/echoserver.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,8 @@
8484
#if defined(__QNX__) || defined(__QNXNTO__)
8585
#include <errno.h>
8686
#include <unix.h>
87-
88-
#elif defined(USE_WINDOWS_API)
89-
#include <errno.h>
9087
#else
91-
#include <sys/errno.h>
88+
#include <errno.h>
9289
#endif
9390
#endif /* WOLFSSH_SHELL */
9491

ide/Espressif/ESP-IDF/examples/wolfssh_echoserver/main/echoserver.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,8 @@
100100
#include <errno.h>
101101
#include <unix.h>
102102

103-
#elif defined(USE_WINDOWS_API)
104-
#include <errno.h>
105103
#else
106-
#include <sys/errno.h>
104+
#include <errno.h>
107105
#endif
108106
#endif /* WOLFSSH_SHELL */
109107

0 commit comments

Comments
 (0)