diff options
author | Ron Yorston <rmy@pobox.com> | 2019-03-30 11:24:00 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-03-30 11:24:00 +0000 |
commit | 077d4c21c0e48e495bc86ea0dec28e5a7143efa8 (patch) | |
tree | eebcad878cd140ea28c5e783c8826d93aa566c60 /win32/mntent.h | |
parent | 548ec7045bc7c80eaf03e92f390d1da2c9e9cd86 (diff) | |
download | busybox-w32-077d4c21c0e48e495bc86ea0dec28e5a7143efa8.tar.gz busybox-w32-077d4c21c0e48e495bc86ea0dec28e5a7143efa8.tar.bz2 busybox-w32-077d4c21c0e48e495bc86ea0dec28e5a7143efa8.zip |
win32: update implementation of setmntent(3)
- The arguments to setmntent(3) are unused: add a macro to drop
them at call sites.
- Allow remote drives.
Diffstat (limited to '')
-rw-r--r-- | win32/mntent.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win32/mntent.h b/win32/mntent.h index b035bfa9c..8bdf3d45e 100644 --- a/win32/mntent.h +++ b/win32/mntent.h | |||
@@ -12,8 +12,10 @@ struct mntent { | |||
12 | int mnt_passno; /* Pass number for `fsck'. */ | 12 | int mnt_passno; /* Pass number for `fsck'. */ |
13 | }; | 13 | }; |
14 | 14 | ||
15 | extern FILE *setmntent(const char *file, const char *mode); | 15 | extern FILE *mingw_setmntent(void); |
16 | extern struct mntent *getmntent(FILE *stream); | 16 | extern struct mntent *getmntent(FILE *stream); |
17 | extern int endmntent(FILE *stream); | 17 | extern int endmntent(FILE *stream); |
18 | 18 | ||
19 | #define setmntent(f, m) mingw_setmntent() | ||
20 | |||
19 | #endif | 21 | #endif |