Ticket #2917: mc-4.8.1.6-1.DATADIR.patch
File mc-4.8.1.6-1.DATADIR.patch, 976 bytes (added by matzeri, 12 years ago) |
---|
-
mc-4.8.1.6/src/filemanager/mountlist.c
old new 214 214 #endif 215 215 216 216 #ifdef __CYGWIN__ 217 /* DATADIR is already used in files pulled by <windows.h> */ 218 #ifdef DATADIR 219 #define saveDATADIR DATADIR 220 #undef DATADIR 221 #endif 222 217 223 #include <windows.h> 218 224 #define ME_REMOTE me_remote 219 225 /* All cygwin mount points include `:' or start with `//'; so it 220 226 requires a native Windows call to determine remote disks. */ 221 227 static int 222 me_remote (char const *fs_name, char const *fs_type _GL_UNUSED)228 me_remote (char const *fs_name, char const *fs_type ) 223 229 { 224 230 if (fs_name[0] && fs_name[1] == ':') 225 231 { … … me_remote (char const *fs_name, char con 236 242 } 237 243 return 1; 238 244 } 245 246 #ifdef saveDATADIR 247 #define DATADIR saveDATADIR 248 #undef saveDATADIR 249 #endif 250 239 251 #endif 240 252 #ifndef ME_REMOTE 241 253 /* A file system is `remote' if its Fs_name contains a `:'