summaryrefslogtreecommitdiff
path: root/src/latency.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-11-14 17:13:35 +0100
committerantirez <antirez@gmail.com>2014-11-14 17:13:35 +0100
commit620906693ee2e80f5b8ff835b7fa109b1ff22b63 (patch)
tree1ede5313089912c82aa1e446ff4522ee61592880 /src/latency.c
parent8a75ec0fca824f789f578bffdfc897c4df1b5d2b (diff)
downloadredis-620906693ee2e80f5b8ff835b7fa109b1ff22b63.tar.gz
Fix non-linux builds error introduced with THP checks.
Diffstat (limited to 'src/latency.c')
-rw-r--r--src/latency.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/latency.c b/src/latency.c
index 67eb593f7..9875aa164 100644
--- a/src/latency.c
+++ b/src/latency.c
@@ -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 --------------------------------- */