cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: feeling adventurous?

From: Hartroth, Jörn <Joern.Hartroth_at_telekom.de>
Date: Wed, 2 Feb 2000 15:01:43 +0100

Right. Stupid me, you said as much in the announcement.

Anyway, here's the required patch to lib/Makefile.m32 and two changes required in config-win32.h (no sys/select.h and no gettimeofday()).

FTP upload seems to work well (progress indicator is blank, though).

Jörn

----------------------------------------------------------------------
*** Makefile.m32 Wed Feb 02 14:50:18 2000
--- Makefile.m32.org Sun Oct 17 14:25:56 1999
***************
*** 24,41 ****
  
  libcurl_a_LIBRARIES = libcurl.a
  
! libcurl_a_SOURCES = base64.c getenv.c if2ip.h progress.h \
  base64.h getenv.h mprintf.c setup.h url.c download.c getpass.c \
  mprintf.h ssluse.c url.h download.h hostip.c netrc.c ssluse.h \
  urldata.h formdata.c hostip.h netrc.h stdcheaders.h formdata.h \
! if2ip.c progress.c sendf.c sendf.h speedcheck.c speedcheck.h \
  ftp.c ftp.h getpass.c getpass.h version.c timeval.c timeval.h cookie.c \
  cookie.h escape.c escape.h getdate.c getdate.h dict.h dict.c http.c \
  http.h telnet.c telnet.h file.c file.h ldap.c ldap.h
  
  libcurl_a_OBJECTS = base64.o getenv.o mprintf.o url.o download.o \
  getpass.o ssluse.o hostip.o netrc.o formdata.o if2ip.o progress.o \
! sendf.o speedcheck.o ftp.o getpass.o version.o timeval.o \
  cookie.o escape.o getdate.o dict.o http.o telnet.o file.o ldap.o
  
  LIBRARIES = $(libcurl_a_LIBRARIES)
--- 24,41 ----
  
  libcurl_a_LIBRARIES = libcurl.a
  
! libcurl_a_SOURCES = base64.c getenv.c if2ip.h progress.h upload.h \
  base64.h getenv.h mprintf.c setup.h url.c download.c getpass.c \
  mprintf.h ssluse.c url.h download.h hostip.c netrc.c ssluse.h \
  urldata.h formdata.c hostip.h netrc.h stdcheaders.h formdata.h \
! if2ip.c progress.c upload.c sendf.c sendf.h speedcheck.c speedcheck.h \
  ftp.c ftp.h getpass.c getpass.h version.c timeval.c timeval.h cookie.c \
  cookie.h escape.c escape.h getdate.c getdate.h dict.h dict.c http.c \
  http.h telnet.c telnet.h file.c file.h ldap.c ldap.h
  
  libcurl_a_OBJECTS = base64.o getenv.o mprintf.o url.o download.o \
  getpass.o ssluse.o hostip.o netrc.o formdata.o if2ip.o progress.o \
! upload.o sendf.o speedcheck.o ftp.o getpass.o version.o timeval.o \
  cookie.o escape.o getdate.o dict.o http.o telnet.o file.o ldap.o
  
  LIBRARIES = $(libcurl_a_LIBRARIES)
----------------------------------------------------------------------
*** config-win32.h Wed Feb 02 14:37:30 2000
--- config-win32.h.org Mon Dec 13 23:10:42 1999
***************
*** 51,57 ****
  #define HAVE_GETSERVBYNAME 1
  
  /* Define if you have the gettimeofday function. */
! /* #define HAVE_GETTIMEOFDAY 1 */
  
  /* Define if you have the inet_addr function. */
  #define HAVE_INET_ADDR 1
--- 51,57 ----
  #define HAVE_GETSERVBYNAME 1
  
  /* Define if you have the gettimeofday function. */
! #define HAVE_GETTIMEOFDAY 1
  
  /* Define if you have the inet_addr function. */
  #define HAVE_INET_ADDR 1
***************
*** 126,132 ****
  /*#define HAVE_SYS_PARAM_H 1*/
  
  /* Define if you have the <sys/select.h> header file. */
! /* #define HAVE_SYS_SELECT_H 1 */
  
  /* Define if you have the <sys/socket.h> header file. */
  /*#define HAVE_SYS_SOCKET_H 1*/
--- 126,132 ----
  /*#define HAVE_SYS_PARAM_H 1*/
  
  /* Define if you have the <sys/select.h> header file. */
! #define HAVE_SYS_SELECT_H 1
  
  /* Define if you have the <sys/socket.h> header file. */
  /*#define HAVE_SYS_SOCKET_H 1*/
----------------------------------------------------------------------
> -----Original Message-----
> From: Daniel Stenberg [mailto:Daniel.Stenberg_at_haxx.nu]
> Sent: Wednesday, February 02, 2000 2:20 PM
> To: curl_at_contactor.se
> Subject: Re: feeling adventurous?
>
>
> "Hartroth, Jörn" wrote:
>
> > the Unix versions for some reason (or for no reason :?)
> omit upload.c from libcurl.
> > Oh, and upload.c doesn't appear in the (Web)CVS directory either.
>
> Correct. upload.[ch] are history, gone! download.[ch] is now
> taking care
> of both directions and will proably get renamed to
> transfer.[ch] soon to
> match the new function name Transfer()...
>
> --
> Daniel Stenberg - http://www.contactor.se/~dast - +46-705-44 31 77
> ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
>
Received on 2000-02-02