Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MFU-578: add xattr.h header to mfu_io.c #582

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Michael-Hennecke
Copy link
Collaborator

include the xattr.h header in mfu_io.c to avoid compilation errors (ISO C99 and later do not support implicit function declarations)

include the xattr.h header in mfu_io.c to avoid compilation errors
(ISO C99 and later do not support implicit function declarations)

Signed-off-by: Michael Hennecke <michael.hennecke@intel.com>
Copy link
Collaborator

@daltonbohning daltonbohning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we do this I think it still needs to be behind the xattr compile flag.

E.g.

#if DCOPY_USE_XATTRS
#include <sys/xattr.h>
#endif

Then, the real fix to your #578 is to also wrap the uses of the xattr functions.
A workaround is to just build with -DENABLE_XATTRS=ON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants