curl-library
RE: Help on usinig Curl on vxwrks
Date: Mon, 25 May 2009 13:41:43 +0300
> I am trying to integrate curl-library with the software on an embedded
system running on VxWorks 6.2.
I compiled libcurl for VxWorks 6.3 using the same build framework which
I use to compile my application.
So if you compile other software, use same makefile an same way to build
the libcurl. You have to compile all .c files located in the lib folder.
You should adjust lib/config.h to features supported by VxWorks 6.2. You
can try to use the attached file, that worked for me on VxWorks 6.3.
Rename it to config.h and put it into lib folder.
Few minor fixes should be done in sources:
1. In the file the lib\file.c file:
replace the
fd = open(real_path, O_RDONLY);
with the
fd = open(real_path, O_RDONLY,
conn->data->set.new_file_perms);
2. In the file the lib\strerror.c file:
replace the
char *msg = strerror_r(err, buffer, sizeof(buffer));
with the
char *msg = strerror_r(err, buffer);
3. In the include\curl\curl.h file:
delete following line:
#include <sys/time.h>
Note the struct timeval declaration is provided in the attached
config.h.
Igor
- application/octet-stream attachment: vxworks6.3.libcurl.config.h