sysutils/kio-fuse: fix build on GCC architectures

ENODATA is not defined on GCC systems:
/wrkdirs/usr/ports/sysutils/kio-fuse/work/kio-fuse-4.95.0/kiofusevfs.cpp: In static member function 'static int KIOFuseVFS::kioErrorToFuseError(int)':
/wrkdirs/usr/ports/sysutils/kio-fuse/work/kio-fuse-4.95.0/kiofusevfs.cpp:2323:55: error: 'ENODATA' was not declared in this scope
 2323 |   case KIO::ERR_NO_CONTENT                   : return ENODATA;

Guard it behind ifdef.

PR:		247009
Approved by:	tcberner (maintainer)
This commit is contained in:
Piotr Kubaj 2020-06-05 20:46:32 +00:00
parent 805a783dcf
commit 51b35c7f22
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=538056

View file

@ -0,0 +1,12 @@
--- kiofusevfs.cpp.orig 2020-06-05 16:51:15 UTC
+++ kiofusevfs.cpp
@@ -2320,7 +2320,9 @@ int KIOFuseVFS::kioErrorToFuseError(const int kioError
case KIO::ERR_CANNOT_RENAME_PARTIAL : return EIO;
case KIO::ERR_NEED_PASSWD : return EACCES;
case KIO::ERR_CANNOT_SYMLINK : return EIO;
+#ifdef ENODATA
case KIO::ERR_NO_CONTENT : return ENODATA;
+#endif
case KIO::ERR_DISK_FULL : return ENOSPC;
case KIO::ERR_IDENTICAL_FILES : return EEXIST;
case KIO::ERR_SLAVE_DEFINED : return EIO;