- Fix ncftp build.
authorAleksey Bragin <aleksey@reactos.org>
Wed, 5 Nov 2008 09:32:32 +0000 (09:32 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Wed, 5 Nov 2008 09:32:32 +0000 (09:32 +0000)
svn path=/trunk/; revision=37198

rosapps/applications/net/ncftp/ncftp/getline.c
rosapps/applications/net/ncftp/ncftp/syshdrs.h

index 55a1612..51a889f 100644 (file)
@@ -130,7 +130,7 @@ static int gl_tab(char *buf, int offset, int *loc, size_t bufsize);
 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_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*?<>|;&()[]$`";
 gl_tab_completion_proc gl_completion_proc = 0;
 int gl_filename_quoting_desired = -1;  /* default to unspecified */
 const char *gl_filename_quote_characters = " \t*?<>|;&()[]$`";
index 83307c2..618eaf6 100644 (file)
@@ -24,6 +24,8 @@
 //#    include <shlobj.h>
 #      ifdef HAVE_UNISTD_H
 #              include <unistd.h>
 //#    include <shlobj.h>
 #      ifdef HAVE_UNISTD_H
 #              include <unistd.h>
+#      else
+#              include <process.h>
 #      endif
 #      include <errno.h>
 #      include <stdio.h>
 #      endif
 #      include <errno.h>
 #      include <stdio.h>