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

Fix build on Fedora, openSuse etc. - use sys/xattr.h instead of attr/xattr.h #9

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

kapitainsky
Copy link
Contributor

@kapitainsky kapitainsky commented Jun 28, 2022

Following on #8

Applications should use sys/xattr.h instead of attr/xattr.h which is missing in many distros (Redhat, Fedora, openSuse, Centos) and existing source code will not compile.

Proposed change should work on all distros - tested on Debian, Fedora and openSuse

@kapitainsky kapitainsky changed the title Update HfsFuseVolume.cpp - use sys/xattr.h instead of attr/xattr.h Fix build on Fedora, openSuse etc. - use sys/xattr.h instead of attr/xattr.h Jun 28, 2022
@jief666
Copy link
Owner

jief666 commented Jun 28, 2022

ENOATTR is always supposed to be equal to ENOATTR ?

@jief666 jief666 merged commit b1a31ae into jief666:master Jun 28, 2022
@kapitainsky
Copy link
Contributor Author

ENOATTR is always supposed to be equal to ENOATTR ?

I have tried get the broader compatibility as sys/errno.h

return ENODATA, while ENOATTR is not defined: Linux
return ENOATTR, while ENODATA is not defined: FreeBSD

@jief666
Copy link
Owner

jief666 commented Jun 28, 2022

If I understand well, if I want to compile on FreeBSD, I'll have #ifdef and adapt this include of xattr.h and the #define. Am I correct ?

@kapitainsky
Copy link
Contributor Author

kapitainsky commented Jun 28, 2022 via email

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