Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Revert "Added support for compilation on glibc 2.33 and onwards" #6

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions ldp_fuse/include/ldpfuse.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>

/*
from version GLIBC 2.32 unistd.h contains constant definitions that we need, but also `close_range`
This causes conflicts as symbols with those names are also
necessarily defined here. We therefore overwrite them using #define.
*/
#if (__GLIBC__ > 1 && __GLIBC_MINOR__ > 32)
#define close_range __renamed_close_range
#include <unistd.h>
#undef close_range
#else
#include <unistd.h>
#endif

// Include `cwalk` directly as this lib is header-only
#include "./cwalk.c"
Expand Down Expand Up @@ -430,15 +418,7 @@ static char* resolve_fd(int fd) {

#define LDP_FUSE_PATH_MAX_LEN 256

/*
from version 2.32 glibc does not have the _STAT_VER macro
defined in "sys/stat.h"
*/
#if (__GLIBC__ > 1 && __GLIBC_MINOR__ > 32)
#define STAT_VER 0
#else
#define STAT_VER _STAT_VER
#endif

// Whether `path` is in the LDP_FUSE filesystem. The LDP_FUSE filesystem is
// mounted under the LDP_FUSE_PATH env variable.
Expand Down
Loading