Skip to content

Commit

Permalink
zephyr: remove posix prefix on standard headers
Browse files Browse the repository at this point in the history
Instead of using `#include <posix/unistd.h>`,
just use `#include <unistd.h>`, etc.

Required-by zephyrproject-rtos/zephyr#43998

Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
  • Loading branch information
cfriedt committed Mar 20, 2022
1 parent 094aeb4 commit 8ab2c60
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/civetweb.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,17 @@ mg_static_assert(sizeof(void *) >= sizeof(int), "data type size check");
#endif /* __SYMBIAN32__ */

#if defined(__ZEPHYR__)
#include <time.h>

#include <ctype.h>
#include <net/socket.h>
#include <posix/pthread.h>
#include <posix/time.h>
#include <sys/socket.h>
#include <pthread.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zephyr.h>

#include <fcntl.h>

#include <libc_extensions.h>

/* Max worker threads is the max of pthreads minus the main application thread
* and minus the main civetweb thread, thus -2
*/
Expand Down

0 comments on commit 8ab2c60

Please sign in to comment.