Commit b2f8c60e authored by Davide Viti's avatar Davide Viti Committed by Peter Korsgaard
Browse files

mongoose: bump to version 5.5



- examples/server was renamed examples/web_server
 - patch was submitted and included upstream so we can drop it

Signed-off-by: default avatarDavide Viti <zinosat@tiscali.it>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent c5278753
Loading
Loading
Loading
Loading
+0 −22
Original line number Diff line number Diff line
Avoid the following warning, due to duplicate definition of
"_LARGEFILE_SOURCE"

mongoose.c:52:0: warning: "_LARGEFILE_SOURCE" redefined [enabled by default]
 #define _LARGEFILE_SOURCE       // Enable fseeko() and ftello() functions
 ^
<command-line>:0:0: note: this is the location of the previous definition

Signed-off-by: Davide Viti <zinosat@tiscali.it>

--- mongoose-5.4/mongoose.c~	2014-07-28 13:19:00.000000000 +0200
+++ mongoose-5.4/mongoose.c	2014-08-04 23:10:59.164092500 +0200
@@ -49,7 +49,9 @@
 #define _XOPEN_SOURCE 600       // For flockfile() on Linux
 #define __STDC_FORMAT_MACROS    // <inttypes.h> wants this for C++
 #define __STDC_LIMIT_MACROS     // C++ wants that for INT64_MAX
+#ifndef _LARGEFILE_SOURCE
 #define _LARGEFILE_SOURCE       // Enable fseeko() and ftello() functions
+#endif
 #define _FILE_OFFSET_BITS 64    // Enable 64-bit file offsets
 
 #ifdef _MSC_VER
+5 −4
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
#
################################################################################

MONGOOSE_VERSION = 5.4
MONGOOSE_VERSION = 5.5
MONGOOSE_SITE = $(call github,cesanta,mongoose,$(MONGOOSE_VERSION))
MONGOOSE_LICENSE = GPLv2
MONGOOSE_LICENSE_FILES = LICENSE
@@ -19,14 +19,15 @@ MONGOOSE_CFLAGS += -DNS_ENABLE_SSL -lssl -lcrypto -lz
endif

define MONGOOSE_BUILD_CMDS
	$(TARGET_CC) $(@D)/examples/server.c $(@D)/mongoose.c -I$(@D) \
		-o $(@D)/examples/server $(MONGOOSE_CFLAGS) -pthread -ldl
	$(TARGET_CC) $(@D)/examples/web_server/web_server.c $(@D)/mongoose.c \
		-I$(@D) -o $(@D)/examples/web_server/web_server \
		$(MONGOOSE_CFLAGS) -pthread -ldl
	$(TARGET_CC) -c $(@D)/mongoose.c $(MONGOOSE_CFLAGS) -o $(@D)/mongoose.o
	$(TARGET_AR) rcs $(@D)/libmongoose.a $(@D)/mongoose.o
endef

define MONGOOSE_INSTALL_TARGET_CMDS
	$(INSTALL) -D -m 755 $(@D)/examples/server \
	$(INSTALL) -D -m 755 $(@D)/examples/web_server/web_server \
		$(TARGET_DIR)/usr/sbin/mongoose
	$(INSTALL) -D -m 755 package/mongoose/S85mongoose \
		$(TARGET_DIR)/etc/init.d/S85mongoose