fix perf compilation when linux and glibc > 2.17

This commit is contained in:
LINxiansheng
2025-01-24 08:15:13 +00:00
committed by ob-robot
parent 502427a579
commit 10a55fe6fa
2 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,11 @@
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PubL v2 for more details.
*/
#include <linux/falloc.h> // FALLOC_FL_ZERO_RANGE for linux kernel 3.15
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "log_io_utils.h"
#include "logservice/ob_server_log_block_mgr.h"

View File

@ -13,6 +13,8 @@
#include "ob_local_device.h"
#include <sys/vfs.h>
#include <sys/statvfs.h>
#include <unistd.h>
#include <linux/falloc.h>
#include "share/ob_resource_limit.h"
#include "storage/slog/ob_storage_logger_manager.h"
#include "lib/ash/ob_active_session_guard.h"