darlinghq / darling-dmg

FUSE module for .dmg files (containing an HFS+ filesystem)
http://www.darlinghq.org
GNU General Public License v3.0
273 stars 45 forks source link

compile error: 'ENOATTR' was not declared in this scope #87

Closed dzung-hoang closed 6 years ago

dzung-hoang commented 6 years ago

Compiling under Ubuntu 16.04.5 LTS with gcc 5.4.0 results in following error.

./darling-dmg/src/main-fuse.cpp: In function ‘int handle_exceptions(std::function<int()>)’:
./darling-dmg/src/main-fuse.cpp:166:11: error: ‘ENOATTR’ was not declared in this scope
   return -ENOATTR;

I worked around this by adding the following code after the #include statements in main-fuse.cpp.

#ifndef ENOATTR
#define ENOATTR ENODATA
#endif