Skip to content
Snippets Groups Projects
Commit 4427244b authored by Joakim Söderberg's avatar Joakim Söderberg Committed by Andy Green
Browse files

Don't mess with system types

is no problem on a unix system with sys/types.h

However on Windows it will result in a #undef pid_t ... When libwebsockets is used with pthreads32 which typedefs pid_t itself, it will fail to build with some weird errors.

Also since we're exporitng these macros to the entire world via libwebsockets.h we should not define a VERSION macro. Which is defined improperly anyway.
parent cefab311
Branches
Tags
No related merge requests found
/* config.h.in. Generated from configure.ac by autoheader. */
/* lws_config.h Generated from lws_config.h.in */
#ifndef NDEBUG
#ifndef _DEBUG
......@@ -152,26 +152,14 @@
*/
#undef LT_OBJDIR // We're not using libtool
/* Version number of package */
#cmakedefine VERSION
/* Define to rpl_malloc if the replacement function should be used. */
#cmakedefine malloc
/* Define to `int' if <sys/types.h> does not define. */
#cmakedefine pid_t
/* Define to rpl_realloc if the replacement function should be used. */
#cmakedefine realloc
/* Define to `unsigned int' if <sys/types.h> does not define. */
#cmakedefine size_t
/* Define to 1 if we have getifaddrs */
#cmakedefine LWS_HAVE_GETIFADDRS
/* Define as `fork' if `vfork' does not work. */
//#cmakedefine vfork
/* Define if the inline keyword doesn't exist. */
#cmakedefine inline ${inline}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment