fix macros for LFS *64_t types in sys/stat.h, sys/types.h, glob.h
authorSzabolcs Nagy <nsz@port70.net>
Fri, 5 Sep 2014 19:43:49 +0000 (21:43 +0200)
committerRich Felker <dalias@aerifal.cx>
Fri, 5 Sep 2014 20:03:07 +0000 (16:03 -0400)
there is no blksize64_t (blksize_t is always long) but there are
fsblkcnt64_t and fsfilcnt64_t types in sys/stat.h and sys/types.h.
and glob.h missed glob64_t.

include/glob.h
include/sys/stat.h
include/sys/types.h

index 9fbbaa65ea2042447992ac1e1c567e2ba479e147..76f6c1c68a235688789bbf740b2ba7e5f34983a5 100644 (file)
@@ -39,6 +39,7 @@ void globfree(glob_t *);
 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
 #define glob64 glob
 #define globfree64 globfree
+#define glob64_t glob_t
 #endif
 
 #ifdef __cplusplus
index c6abab5a0c01f58746def40c29cc32cfe976c27e..82a649043dc8b316df079cba2107ac13e2637e5d 100644 (file)
@@ -100,8 +100,9 @@ int lchmod(const char *, mode_t);
 #define fstat64 fstat
 #define lstat64 lstat
 #define fstatat64 fstatat
-#define blksize64_t blksize_t
 #define blkcnt64_t blkcnt_t
+#define fsblkcnt64_t fsblkcnt_t
+#define fsfilcnt64_t fsfilcnt_t
 #define ino64_t ino_t
 #define off64_t off_t
 #endif
index f00db03e6db2688a214080d4ded5e8e868c102f0..75e489c57345a8d161e73dba60fb6d2d7c1f42b7 100644 (file)
@@ -73,7 +73,6 @@ typedef unsigned long long u_quad_t;
 #endif
 
 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
-#define blksize64_t blksize_t
 #define blkcnt64_t blkcnt_t
 #define fsblkcnt64_t fsblkcnt_t
 #define fsfilcnt64_t fsfilcnt_t