Changes of Revision 6
[-] | Changed | varnish.spec |
x 1
2 Source3: changes-html.xsl 3 Patch0: varnish-redhat-pid.patch 4 Patch1: varnishncsa-vhost.patch 5 +Patch2: 2014-05-21_varnish.diff 6 7 Summary: Varnish is a high-performance HTTP accelerator 8 9
10 %setup -n %{name}-%{pversion} 11 %patch0 12 %patch1 13 +%patch2 14 touch AUTHORS COPYING NEWS 15 cp %{S:3} doc/ 16 17 |
||
[+] | Added | 2014-05-21_varnish.diff ^ |
@@ -0,0 +1,60 @@ +--- 2014-05-21/shared_fetch.vcl 2014-05-21 19:41:49.012476279 +0200 ++++ ./shared_fetch.vcl 2014-05-21 19:46:13.816197527 +0200 +@@ -349,6 +349,7 @@ + + /* calc new obj.ttl */ + if (ttl > 0) { ++ char ttl_string_buf[16]; + nttl = randomize_ttl(ttl); + if (nttl < expires_padding_thres) + expires_padding = 0; +Only in .: test +Only in .: test.20140513 +diff -rub 2014-05-21/vauth-c-functions.vcl ./vauth-c-functions.vcl +--- 2014-05-21/vauth-c-functions.vcl 2014-05-21 19:41:49.014476367 +0200 ++++ ./vauth-c-functions.vcl 2014-05-21 19:44:47.754388094 +0200 +@@ -1,38 +1,18 @@ + C{ + +-/* sparse declarations to avoid full header file inclusions */ +- + unsigned long TIM_mono_randseed(void); + double TIM_mono(void); +-double drand48(void); +-double erand48(unsigned short xi[3]); +- +-/* Symbolic constants for the "access" routine: */ +-#define R_OK 4 /* Test for Read permission */ +-#define W_OK 2 /* Test for Write permission */ +-#define X_OK 1 /* Test for eXecute permission */ +-#define F_OK 0 /* Test for existence of File */ +-extern int access(const char *, int); + ++#include <stdlib.h> ++#include <fcntl.h> + #include <time.h> +- +-extern long labs(long lval); +-extern long atol(const char *str); +- +-extern int strncmp(const char *, const char *, size_t); +-/* +- * use thread-local storage in order to avoid memory management +- */ +-__thread char ttl_string_buf[16]; +-__thread unsigned short xi[3]; +-__thread unsigned short xi_inited; +- +-/* use of atoi() below */ +- + #include <stdlib.h> +- ++#include <string.h> + #include <errno.h> + ++unsigned short xi[3]; ++unsigned short xi_inited; ++ + typedef void lbv_assert_f(const char *, const char *, int, const char *, + int, int); + extern lbv_assert_f *lbv_assert; |