cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Seek function

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 8 Jan 2008 23:48:13 +0100 (CET)

On Tue, 8 Jan 2008, Georg Lippitsch wrote:

> Here is another patch which is intended to add the following options to
> curl_easy_setopt (Note applied and compiled with CVS from 2008-01-07, but in
> the meantime things might have changed):

Did it really work?

$ patch -p1 < patches/seek_func_cvs.patch
patching file include/curl/curl.h
Hunk #1 succeeded at 249 (offset 5 lines).
Hunk #2 succeeded at 1184 (offset 5 lines).
patching file lib/ftp.c
patching file lib/http.c
patching file lib/transfer.c
Hunk #1 succeeded at 245 (offset 8 lines).
patching file lib/url.c
patching file lib/urldata.h
Hunk #1 succeeded at 967 (offset 6 lines).
Hunk #2 succeeded at 1336 (offset 9 lines).
Hunk #3 succeeded at 1355 (offset 9 lines).
$ make
[...]
http.c: In function 'Curl_http':
http.c:2195: error: 'struct SessionHandle' has no member named 'reqdata'
http.c:2206: error: 'passed' undeclared (first use in this function)
http.c:2206: error: (Each undeclared identifier is reported only once
http.c:2206: error: for each function it appears in.)
make[2]: *** [http.lo] Error 1

I can easily fix the first error with s/reqdata/state and the second error is
probably that you've removed the local variable 'passed' with your patch, but
the failures make me wonder since you said this works and it applied nicely on
my CVS version...

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-01-08