Date: Fri, 5 Jun 2020 20:46:33 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r538056 - head/sysutils/kio-fuse/files Message-ID: <202006052046.055KkXBN079574@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Fri Jun 5 20:46:32 2020 New Revision: 538056 URL: https://svnweb.freebsd.org/changeset/ports/538056 Log: 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) Added: head/sysutils/kio-fuse/files/patch-kiofusevfs.cpp (contents, props changed) Added: head/sysutils/kio-fuse/files/patch-kiofusevfs.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/kio-fuse/files/patch-kiofusevfs.cpp Fri Jun 5 20:46:32 2020 (r538056) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006052046.055KkXBN079574>