Fix httping compilation
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6399 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
989827039d
commit
49b4a10ec6
@ -34,7 +34,9 @@ define Package/httping
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/Default)
|
||||
$(call Build/Compile/Default, \
|
||||
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
||||
)
|
||||
endef
|
||||
|
||||
define Package/httping/install
|
||||
|
30
net/httping/patches/02-version.patch
Normal file
30
net/httping/patches/02-version.patch
Normal file
@ -0,0 +1,30 @@
|
||||
diff -urN httping-1.0.10/main.c httping-1.0.10.new/main.c
|
||||
--- httping-1.0.10/main.c 2006-01-02 17:07:29.000000000 +0100
|
||||
+++ httping-1.0.10.new/main.c 2007-02-27 11:14:32.000000000 +0100
|
||||
@@ -38,6 +38,8 @@
|
||||
#include "utils.h"
|
||||
#include "error.h"
|
||||
|
||||
+#define VERSION "1.0.10"
|
||||
+
|
||||
static volatile int stop = 0;
|
||||
|
||||
int quiet = 0;
|
||||
@@ -48,7 +50,7 @@
|
||||
|
||||
void version(void)
|
||||
{
|
||||
- fprintf(stderr, "HTTPing v" VERSION ", (C) 2003-2005 folkert@vanheusden.com\n");
|
||||
+ fprintf(stderr, "HTTPing v%s (C) 2003-2005 folkert@vanheusden.com\n", VERSION);
|
||||
#ifndef NO_SSL
|
||||
fprintf(stderr, "SSL support included\n");
|
||||
#endif
|
||||
@@ -382,7 +384,7 @@
|
||||
if (useragent)
|
||||
sprintf(&request[strlen(request)], "User-Agent: %s\r\n", useragent);
|
||||
else
|
||||
- sprintf(&request[strlen(request)], "User-Agent: HTTPing v" VERSION "\r\n");
|
||||
+ sprintf(&request[strlen(request)], "User-Agent: HTTPing v%s\r\n", VERSION);
|
||||
if (referer)
|
||||
sprintf(&request[strlen(request)], "Referer: %s\r\n", referer);
|
||||
strcat(request, "\r\n");
|
Loading…
x
Reference in New Issue
Block a user