Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

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 Apr 3, 2022
1 parent 95d8b7c commit 35923e4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/civetweb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
*/

#if defined(__GNUC__) || defined(__MINGW32__)
#ifndef GCC_VERSION
#define GCC_VERSION \
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
#endif
#if GCC_VERSION >= 40500
/* gcc diagnostic pragmas available */
#define GCC_DIAGNOSTIC
Expand Down Expand Up @@ -182,20 +184,18 @@ 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 <fcntl.h>
#include <netdb.h>
#include <poll.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zephyr.h>

#include <fcntl.h>
#include <sys/socket.h>
#include <time.h>

#include <libc_extensions.h>
#include <zephyr.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 35923e4

Please sign in to comment.