We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a62fd8f commit a2fda45Copy full SHA for a2fda45
libsrc/posixio.c
@@ -15,6 +15,7 @@
15
#include <stdlib.h>
16
#include <errno.h>
17
#include <string.h>
18
+#include <stddef.h>
19
20
#ifdef HAVE_FCNTL_H
21
#include <fcntl.h>
@@ -120,7 +121,7 @@ static off_t nc_get_filelen(const int fd) {
120
121
off_t flen;
122
123
#ifdef HAVE_FILE_LENGTH_I64
- __int64 file_len = 0;
124
+ int64_t file_len = 0;
125
if ((file_len = _filelengthi64(fd)) < 0) {
126
return file_len;
127
}
@@ -1829,7 +1830,7 @@ ncio_px_filesize(ncio *nciop, off_t *filesizep)
1829
1830
Use _filelengthi64 isntead. */
1831
1832
1833
1834
if( (file_len = _filelengthi64(nciop->fd)) < 0) {
1835
return errno;
1836
0 commit comments