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

Commit

Permalink
Merge pull request civetweb#1068 from cfriedt/zephyr-time-instead-of-…
Browse files Browse the repository at this point in the history
…posix-time

zephyr: remove posix prefix on standard headers
  • Loading branch information
bel2125 authored Apr 3, 2022
2 parents 95d8b7c + 35923e4 commit 0ce1271
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 0ce1271

Please sign in to comment.