[xml] windows build failure



Trying to build 2.6.19 using VC 6++ failed due to the errors:
..\nanoftp.c(1375) : error C2065: 'XML_SOCKLEN_T' : undeclared identifier
..\nanoftp.c(1375) : error C2146: syntax error : missing ';' before identifier 'dataAddrLen'
..\nanoftp.c(1375) : error C2065: 'dataAddrLen' : undeclared identifier

Attached is a patch taken from nanohttp to define this if not defined.

Igor, just curious as how you got your binary to compile??

Rob
Index: nanoftp.c
===================================================================
RCS file: /cvs/gnome/gnome-xml/nanoftp.c,v
retrieving revision 1.71
diff -c -r1.71 nanoftp.c
*** nanoftp.c   1 Apr 2005 13:11:51 -0000       1.71
--- nanoftp.c   5 Apr 2005 21:19:00 -0000
***************
*** 108,113 ****
--- 108,117 ----
  #define ss_family __ss_family
  #endif
  
+ #ifndef XML_SOCKLEN_T
+ #define XML_SOCKLEN_T unsigned int
+ #endif
+ 
  #define FTP_COMMAND_OK                200
  #define FTP_SYNTAX_ERROR      500
  #define FTP_GET_PASSWD                331


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]