Mercurial > hg > xemacs-beta
comparison src/sysdir.h @ 3212:26a547441418
[xemacs-hg @ 2006-01-21 13:34:20 by crestani]
Fixes for Cygwin 1.5.19:
* sysdir.h: Workaround missing d_ino field from 'struct dirent'.
* mc-alloc.c (init_mc_allocator): Cygwin claims to have a 64k
page size, add it.
author | crestani |
---|---|
date | Sat, 21 Jan 2006 13:34:21 +0000 |
parents | 804517e16990 |
children | 6bade5a5afc0 |
comparison
equal
deleted
inserted
replaced
3211:b16c0b10f097 | 3212:26a547441418 |
---|---|
60 doesn't specify it -- mrb) | 60 doesn't specify it -- mrb) |
61 | 61 |
62 Since applying strlen to the name always works, we'll just do that. */ | 62 Since applying strlen to the name always works, we'll just do that. */ |
63 #define NAMLEN(p) strlen (p->d_name) | 63 #define NAMLEN(p) strlen (p->d_name) |
64 | 64 |
65 #define DIRENTRY_NONEMPTY(p) ((p)->d_ino) | 65 #ifdef __CYGWIN__ |
66 # define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != '\0') | |
67 #else | |
68 # define DIRENTRY_NONEMPTY(p) ((p)->d_ino) | |
69 #endif | |
66 | 70 |
67 /* encapsulation: directory calls */ | 71 /* encapsulation: directory calls */ |
68 | 72 |
69 int qxe_chdir (const Ibyte *path); | 73 int qxe_chdir (const Ibyte *path); |
70 int qxe_mkdir (const Ibyte *path, mode_t mode); | 74 int qxe_mkdir (const Ibyte *path, mode_t mode); |