diff options
| author | 杨威 <[email protected]> | 2021-12-22 13:36:18 +0800 |
|---|---|---|
| committer | 杨威 <[email protected]> | 2021-12-24 11:33:25 +0800 |
| commit | 7302e725fdd011d5649b1f75a12726695473e31a (patch) | |
| tree | 6b21ec09546d6c064e979296fcd778097bf1e921 | |
| parent | e88084f16fc1fa73c3361d4a814486481172e7f6 (diff) | |
🐞 fix(packet_io_marsio.c):兼容mr4.2,内联fake_marsio_buff_set_rehash_indexv4.2.72
| -rw-r--r-- | src/packet_io/packet_io_marsio.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/packet_io/packet_io_marsio.c b/src/packet_io/packet_io_marsio.c index ffb7e7b..806e23d 100644 --- a/src/packet_io/packet_io_marsio.c +++ b/src/packet_io/packet_io_marsio.c @@ -880,6 +880,10 @@ static void *marsio4_worker(void *arg) return NULL; } +static void fake_marsio_buff_set_rehash_index(marsio_buff_t *m, uint32_t hash) +{ + return ; +} static int marsio_dl_get_function_entry(void) { @@ -988,7 +992,8 @@ static int marsio_dl_get_function_entry(void) ptr_marsio_buff_set_rehash_index = (void (*)(marsio_buff_t *m, uint32_t hash))dlsym(marsio_so_handle, "marsio_buff_set_rehash_index"); if(NULL == ptr_marsio_buff_set_rehash_index){ printf("\033[1;31;40m[Error]dlsym function '%s' from '%s' failed!\033[0m\n", "marsio_buff_set_rehash_index", ABBR_MARSIO_LIBRARY_FILE); - return -1; + ptr_marsio_buff_set_rehash_index = fake_marsio_buff_set_rehash_index; + //return -1; } ptr_marsio_buff_mtod = (char * (*)(marsio_buff_t *m))dlsym(marsio_so_handle, "marsio_buff_mtod"); |
