From: Jo-Philipp Wich Date: Sun, 28 Mar 2010 02:35:45 +0000 (+0000) Subject: uhttpd: fix parameter parsing issue on avr32 and most likely ixp4xx X-Git-Tag: v19.07.0-rc1~31066 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4bc74807e48f823bdf743d19592d4321dfdb6481;p=openwrt%2Fstaging%2Fhauke.git uhttpd: fix parameter parsing issue on avr32 and most likely ixp4xx SVN-Revision: 20532 --- diff --git a/package/uhttpd/Makefile b/package/uhttpd/Makefile index 2b7714d30f..4bee17d234 100644 --- a/package/uhttpd/Makefile +++ b/package/uhttpd/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=uhttpd -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) @@ -56,6 +56,7 @@ endef # hack to use CyASSL headers TARGET_CFLAGS += -I$(firstword $(wildcard $(BUILD_DIR)/cyassl-*/include)) +TARGET_LDFLAGS += -lm MAKE_VARS += FPIC="$(FPIC)" define Build/Prepare diff --git a/package/uhttpd/src/uhttpd.c b/package/uhttpd/src/uhttpd.c index be13b536d7..c6a8b6c272 100644 --- a/package/uhttpd/src/uhttpd.c +++ b/package/uhttpd/src/uhttpd.c @@ -422,7 +422,7 @@ int main (int argc, char **argv) int nofork = 0; /* args */ - char opt; + int opt; char bind[128]; char *port = NULL;