aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2014-01-05 13:28:51 +0000
committerRon Yorston <rmy@pobox.com>2014-01-05 13:28:51 +0000
commit5e8fad1617439c6dacfa04e677f4664b0377e340 (patch)
tree3d9dfd9898f6fcdb46db681fe18584d08592e1ee /include
parentd9d53743c9407bb5032f4cf1da1582feebdf7c2e (diff)
downloadbusybox-w32-5e8fad1617439c6dacfa04e677f4664b0377e340.tar.gz
busybox-w32-5e8fad1617439c6dacfa04e677f4664b0377e340.tar.bz2
busybox-w32-5e8fad1617439c6dacfa04e677f4664b0377e340.zip
Use the preprocessor to fake st_blocks
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index c4748735d..e8c55f646 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -248,6 +248,13 @@ int mingw_fstat(int fd, struct stat *buf);
248#define lstat mingw_lstat 248#define lstat mingw_lstat
249#define _stati64(x,y) mingw_stat(x,y) 249#define _stati64(x,y) mingw_stat(x,y)
250 250
251/* The Windows stat structure doesn't have the st_blocks member. This
252 * macro calculates st_blocks from st_size. It would be better if we
253 * could put brackets around it but most references to st_blocks in BusyBox
254 * are pretty simple and work without brackets.
255 */
256#define st_blocks st_size+511>>9
257
251/* 258/*
252 * sys/sysmacros.h 259 * sys/sysmacros.h
253 */ 260 */