pike.git/
src/
modules/
Inotify/
inotify.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2017-07-19
2017-07-19 17:17:41 by Bill Welliver <bill@welliver.org>
7ff2674af25e6e8911f0444dd53ac50ff2f880b3 (
8
lines) (+
5
/-
3
)
[
Show
|
Annotate
]
Branch:
8.1
Inotify: not all dirents have d_type.
10:
* */
-
#ifdef HAVE_CONFIG_H
-
# include "config.h"
+
#ifdef HAVE_
INOTIFY_
CONFIG_H
+
# include "
inotify_
config.h"
#endif #include "global.h"
278:
pad = 0x08 - (ev.len & 0x07); ev.len += pad; }
-
+
#ifdef HAVE_DIRENT_D_TYPE
if (dirent->d_type == DT_DIR) { ev.mask |= IN_ISDIR; } /* FIXME: Handle DT_UNKNOWN. */
-
+
#endif /* HAVE_DIRENT_T_TYPE */
string_build_mkspace(&THIS->buf, sizeof(ev) + ev.len, 0); string_builder_binary_strcat0(&THIS->buf,