comparison lib-src/gnuclient.c @ 5920:0f2338afbabf cygwin

Minimum necessary to get started: sufficient to compile OK, run -nw, but not with window
author Henry Thompson <ht@markup.co.uk>
date Mon, 21 Apr 2014 11:42:50 +0100
parents 308d34e9f07d
children
comparison
equal deleted inserted replaced
5919:2800105fcc9f 5920:0f2338afbabf
43 * 43 *
44 * (If gnuserv came bundled with your emacs, the README file is probably 44 * (If gnuserv came bundled with your emacs, the README file is probably
45 * ../etc/gnuserv.README relative to the directory containing this file) 45 * ../etc/gnuserv.README relative to the directory containing this file)
46 */ 46 */
47 47
48 #ifdef CYGWIN
49 extern void cygwin_conv_to_posix_path(const char *path, char *posix_path);
50 #endif
51
52 #include "gnuserv.h" 48 #include "gnuserv.h"
53 #include "compiler.h" 49 #include "compiler.h"
50
51 #ifdef CYGWIN
52 /*extern void cygwin_conv_to_posix_path(const char *path, char *posix_path);*/
53 #include <sys/cygwin.h>
54 #endif
54 55
55 char gnuserv_version[] = "gnuclient version " GNUSERV_VERSION; 56 char gnuserv_version[] = "gnuclient version " GNUSERV_VERSION;
56 57
57 #include "getopt.h" 58 #include "getopt.h"
58 59
188 189
189 #ifdef CYGWIN 190 #ifdef CYGWIN
190 /* 191 /*
191 If we're in cygwin, just convert it and let the unix stuff handle it. 192 If we're in cygwin, just convert it and let the unix stuff handle it.
192 */ 193 */
193 cygwin_conv_to_posix_path(filename, cygwinFilename); 194 /* gone in 64-bit cygwin_conv_to_posix_path(filename, cygwinFilename); */
195 cygwin_conv_path (CCP_WIN_A_TO_POSIX | CCP_RELATIVE, filename, cygwinFilename,
196 PATH_MAX);
194 filename = cygwinFilename; 197 filename = cygwinFilename;
195 #endif 198 #endif
196 199
197 if (filename[0] && filename[0] == '/') 200 if (filename[0] && filename[0] == '/')
198 { 201 {