Index: libcfa/src/concurrency/iocall.cfa
===================================================================
--- libcfa/src/concurrency/iocall.cfa	(revision 519f11c3bd79f925ace2b671bf682be5b31bea6f)
+++ libcfa/src/concurrency/iocall.cfa	(revision 5db836e74259bdb0b92bdce62919db57fd1efd5b)
@@ -347,5 +347,10 @@
 int cfa_statx(int dirfd, const char *pathname, int flags, unsigned int mask, struct statx *statxbuf) {
 	#if !defined(HAVE_LINUX_IO_URING_H) || !defined(IORING_OP_STATX)
-		return syscall( __NR_statx, dirfd, pathname, flags, mask, statxbuf );
+		#if defined(__NR_statx)
+			return syscall( __NR_statx, dirfd, pathname, flags, mask, statxbuf );
+		#else
+			errno = ENOTSUP;
+			return -1;
+		#endif
 	#else
 		__submit_prelude
@@ -512,6 +517,5 @@
 
 		if( /*func == (fptr_t)splice || */
-			func == (fptr_t)cfa_splice ||
-			func == (fptr_t)cfa_sendfile )
+			func == (fptr_t)cfa_splice )
 			#define _CFA_IO_FEATURE_IORING_OP_SPLICE ,
 			return IS_DEFINED(IORING_OP_SPLICE);
