diff -ur support_in_VxWorks6.3/curl-7.19.6-20090601/include/curl/curl.h support_in_VxWorks6.3/curl-7.19.6-20090601-my/include/curl/curl.h
--- support_in_VxWorks6.3/curl-7.19.6-20090601/include/curl/curl.h	2009-05-30 04:00:06.000000000 +0300
+++ support_in_VxWorks6.3/curl-7.19.6-20090601-my/include/curl/curl.h	2009-06-01 16:38:55.342439000 +0300
@@ -78,7 +78,7 @@
 #ifndef _WIN32_WCE
 #include <sys/socket.h>
 #endif
-#if !defined(WIN32) && !defined(__WATCOMC__)
+#if !defined(WIN32) && !defined(__WATCOMC__)  && !defined(__VXWORKS__)
 #include <sys/time.h>
 #endif
 #include <sys/types.h>
Only in support_in_VxWorks6.3/curl-7.19.6-20090601-my/lib: Makefile.vxworks
Only in support_in_VxWorks6.3/curl-7.19.6-20090601-my/lib: config-vxworks.h
diff -ur support_in_VxWorks6.3/curl-7.19.6-20090601/lib/file.c support_in_VxWorks6.3/curl-7.19.6-20090601-my/lib/file.c
--- support_in_VxWorks6.3/curl-7.19.6-20090601/lib/file.c	2009-04-22 04:00:08.000000000 +0300
+++ support_in_VxWorks6.3/curl-7.19.6-20090601-my/lib/file.c	2009-06-01 16:38:25.801237000 +0300
@@ -254,8 +254,14 @@
   fd = open(actual_path, O_RDONLY | O_BINARY);  /* no CR/LF translation! */
   file->path = actual_path;
 #else
+
+#ifdef HAVE_OPEN_3
+  fd = open(real_path, O_RDONLY, conn->data->set.new_file_perms);
+#else
   fd = open(real_path, O_RDONLY);
+#endif
   file->path = real_path;
+
 #endif
   file->freepath = real_path; /* free this when done */
 
diff -ur support_in_VxWorks6.3/curl-7.19.6-20090601/lib/setup.h support_in_VxWorks6.3/curl-7.19.6-20090601-my/lib/setup.h
--- support_in_VxWorks6.3/curl-7.19.6-20090601/lib/setup.h	2009-05-02 04:00:06.000000000 +0300
+++ support_in_VxWorks6.3/curl-7.19.6-20090601-my/lib/setup.h	2009-06-01 16:38:33.580993000 +0300
@@ -68,6 +68,10 @@
 #  include "config-tpf.h"
 #endif
 
+#ifdef __VXWORKS__
+#  include "config-vxworks.h"
+#endif
+
 #endif /* HAVE_CONFIG_H */
 
 /* ================================================================ */
diff -ur support_in_VxWorks6.3/curl-7.19.6-20090601/lib/strerror.c support_in_VxWorks6.3/curl-7.19.6-20090601-my/lib/strerror.c
--- support_in_VxWorks6.3/curl-7.19.6-20090601/lib/strerror.c	2008-09-13 04:00:10.000000000 +0300
+++ support_in_VxWorks6.3/curl-7.19.6-20090601-my/lib/strerror.c	2009-06-01 16:38:40.501539000 +0300
@@ -635,7 +635,15 @@
   */
   {
     char buffer[256];
+
+#ifdef HAVE_STRERROR_R_2
+	/* In VxWorks the buffer should be larger than the MAXERRSTR_SIZE value.
+     * This value is defined in the rtsold.h and has a value of 150 (VxWorks 6.3)
+     */
+    char *msg = strerror_r(err, buffer);
+#else
     char *msg = strerror_r(err, buffer, sizeof(buffer));
+#endif
     if(msg)
       strncpy(buf, msg, max);
     else
