aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libbb.h2
-rw-r--r--include/mingw.h1
-rw-r--r--libbb/inode_hash.c4
3 files changed, 5 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index c95f43954..2b349ed12 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1626,7 +1626,9 @@ int bb_xioctl(int fd, unsigned request, void *argp) FAST_FUNC;
1626#endif 1626#endif
1627 1627
1628char *is_in_ino_dev_hashtable(const struct stat *statbuf) FAST_FUNC; 1628char *is_in_ino_dev_hashtable(const struct stat *statbuf) FAST_FUNC;
1629#if !ENABLE_PLATFORM_MINGW32
1629void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) FAST_FUNC; 1630void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) FAST_FUNC;
1631#endif
1630void reset_ino_dev_hashtable(void) FAST_FUNC; 1632void reset_ino_dev_hashtable(void) FAST_FUNC;
1631#ifdef __GLIBC__ 1633#ifdef __GLIBC__
1632/* At least glibc has horrendously large inline for this, so wrap it */ 1634/* At least glibc has horrendously large inline for this, so wrap it */
diff --git a/include/mingw.h b/include/mingw.h
index 08d36cb49..65cccab21 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -470,6 +470,7 @@ const char * next_path_sep(const char *path);
470#define is_absolute_path(path) ((path)[0] == '/' || (path)[0] == '\\' || has_dos_drive_prefix(path)) 470#define is_absolute_path(path) ((path)[0] == '/' || (path)[0] == '\\' || has_dos_drive_prefix(path))
471 471
472#define find_mount_point(n, s) find_mount_point(n) 472#define find_mount_point(n, s) find_mount_point(n)
473#define add_to_ino_dev_hashtable(s, n) (void)0
473 474
474/* 475/*
475 * helpers 476 * helpers
diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c
index 64f43b885..bfed6567c 100644
--- a/libbb/inode_hash.c
+++ b/libbb/inode_hash.c
@@ -56,10 +56,10 @@ char* FAST_FUNC is_in_ino_dev_hashtable(const struct stat *statbuf)
56 return NULL; 56 return NULL;
57} 57}
58 58
59#if !ENABLE_PLATFORM_MINGW32
59/* Add statbuf to statbuf hash table */ 60/* Add statbuf to statbuf hash table */
60void FAST_FUNC add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) 61void FAST_FUNC add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name)
61{ 62{
62#if !ENABLE_PLATFORM_MINGW32
63 int i; 63 int i;
64 ino_dev_hashtable_bucket_t *bucket; 64 ino_dev_hashtable_bucket_t *bucket;
65 65
@@ -77,8 +77,8 @@ void FAST_FUNC add_to_ino_dev_hashtable(const struct stat *statbuf, const char *
77 i = hash_inode(statbuf->st_ino); 77 i = hash_inode(statbuf->st_ino);
78 bucket->next = ino_dev_hashtable[i]; 78 bucket->next = ino_dev_hashtable[i];
79 ino_dev_hashtable[i] = bucket; 79 ino_dev_hashtable[i] = bucket;
80#endif
81} 80}
81#endif
82 82
83#if ENABLE_DU || ENABLE_FEATURE_CLEAN_UP 83#if ENABLE_DU || ENABLE_FEATURE_CLEAN_UP
84/* Clear statbuf hash table */ 84/* Clear statbuf hash table */