Don't mess with system types
author=?UTF-8?q?Joakim=20S=C3=B6derberg?= <joakim.soderberg@gmail.com>
Wed, 24 Jun 2015 15:48:52 +0000 (17:48 +0200)
committerAndy Green <andy.green@linaro.org>
Mon, 12 Oct 2015 01:55:09 +0000 (09:55 +0800)
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.

lws_config.h.in

index 8b49d2f..64db165 100644 (file)
@@ -1,4 +1,4 @@
-/* config.h.in.  Generated from configure.ac by autoheader.  */
+/* lws_config.h  Generated from lws_config.h.in  */
 
 #ifndef NDEBUG
        #ifndef _DEBUG
    */
 #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}