Author: fireball
Date: Wed Nov 5 03:32:32 2008
New Revision: 37198
URL:
http://svn.reactos.org/svn/reactos?rev=37198&view=rev
Log:
- Fix ncftp build.
Modified:
trunk/rosapps/applications/net/ncftp/ncftp/getline.c
trunk/rosapps/applications/net/ncftp/ncftp/syshdrs.h
Modified: trunk/rosapps/applications/net/ncftp/ncftp/getline.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/net/ncftp/ncf…
==============================================================================
--- trunk/rosapps/applications/net/ncftp/ncftp/getline.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/net/ncftp/ncftp/getline.c [iso-8859-1] Wed Nov 5 03:32:32
2008
@@ -130,7 +130,7 @@
gl_in_hook_proc gl_in_hook = 0;
gl_out_hook_proc gl_out_hook = 0;
gl_tab_hook_proc gl_tab_hook = gl_tab;
-gl_strlen_proc gl_strlen = (gl_strlen_proc) strlen;
+size_t gl_strlen(const char *s) { return strlen(s); }
gl_tab_completion_proc gl_completion_proc = 0;
int gl_filename_quoting_desired = -1; /* default to unspecified */
const char *gl_filename_quote_characters = " \t*?<>|;&()[]$`";
Modified: trunk/rosapps/applications/net/ncftp/ncftp/syshdrs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/net/ncftp/ncf…
==============================================================================
--- trunk/rosapps/applications/net/ncftp/ncftp/syshdrs.h [iso-8859-1] (original)
+++ trunk/rosapps/applications/net/ncftp/ncftp/syshdrs.h [iso-8859-1] Wed Nov 5 03:32:32
2008
@@ -24,6 +24,8 @@
//# include <shlobj.h>
# ifdef HAVE_UNISTD_H
# include <unistd.h>
+# else
+# include <process.h>
# endif
# include <errno.h>
# include <stdio.h>