diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-08-02 21:41:40 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-08-02 21:41:40 +0300 |
commit | edc2856a2ae2dc46037f85652440bd329b1a2c8a (patch) | |
tree | c7dc2821a1cea7d65cf8b6ed48d3494e98b98d09 /extension/readdir.c | |
parent | 4b00462246822209b642a4dd63491e59a4fab759 (diff) | |
download | egawk-edc2856a2ae2dc46037f85652440bd329b1a2c8a.tar.gz egawk-edc2856a2ae2dc46037f85652440bd329b1a2c8a.tar.bz2 egawk-edc2856a2ae2dc46037f85652440bd329b1a2c8a.zip |
Rework zOS patches; keep separate from autotools.
Diffstat (limited to 'extension/readdir.c')
-rw-r--r-- | extension/readdir.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/extension/readdir.c b/extension/readdir.c index 7bcabcb0..4578b864 100644 --- a/extension/readdir.c +++ b/extension/readdir.c @@ -137,11 +137,7 @@ ftype(struct dirent *entry, const char *dirname) } /* get_inode --- get the inode of a file */ -#ifdef ZOS_USS -static long -#else static long long -#endif get_inode(struct dirent *entry, const char *dirname) { #ifdef __MINGW32__ @@ -179,11 +175,7 @@ dir_get_record(char **out, awk_input_buf_t *iobuf, int *errcode, int len; open_directory_t *the_dir; const char *ftstr; -#ifdef ZOS_USS - unsigned long ino; -#else unsigned long long ino; -#endif /* * The caller sets *errcode to 0, so we should set it only if an @@ -208,9 +200,7 @@ dir_get_record(char **out, awk_input_buf_t *iobuf, int *errcode, ino = get_inode (dirent, iobuf->name); -#if defined(ZOS_USS) - len = sprintf(the_dir->buf, "%lu/%s", ino, dirent->d_name); -#elif __MINGW32__ +#if __MINGW32__ len = sprintf(the_dir->buf, "%I64u/%s", ino, dirent->d_name); #else len = sprintf(the_dir->buf, "%llu/%s", ino, dirent->d_name); |