mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Fix non-linux builds error introduced with THP checks.
This commit is contained in:
parent
8a75ec0fca
commit
620906693e
@ -73,6 +73,7 @@ int THPIsEnabled(void) {
|
||||
fclose(fp);
|
||||
return (strstr(buf,"[never]") == NULL) ? 1 : 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Report the amount of AnonHugePages in smap, in bytes. If the return
|
||||
* value of the function is non-zero, the process is being targeted by
|
||||
@ -80,7 +81,6 @@ int THPIsEnabled(void) {
|
||||
int THPGetAnonHugePagesSize(void) {
|
||||
return zmalloc_get_smap_bytes_by_field("AnonHugePages:");
|
||||
}
|
||||
#endif
|
||||
|
||||
/* ---------------------------- Latency API --------------------------------- */
|
||||
|
||||
|
@ -356,7 +356,7 @@ size_t zmalloc_get_smap_bytes_by_field(char *field) {
|
||||
}
|
||||
#else
|
||||
size_t zmalloc_get_smap_bytes_by_field(char *field) {
|
||||
REDIS_NOTUSED(field);
|
||||
((void) field);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user