git: 6a78f430d568 - main - deskutils/xdg-desktop-portal: Fix building on 16-CURRENT with renameat2(2)

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Wed, 11 Mar 2026 16:07:10 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6a78f430d568eac7bba57a3979224918e086c78a

commit 6a78f430d568eac7bba57a3979224918e086c78a
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-03-11 16:06:11 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-03-11 16:07:04 +0000

    deskutils/xdg-desktop-portal: Fix building on 16-CURRENT with renameat2(2)
    
    Reported by:    pkg-fallout
---
 .../patch-document-portal_document-portal-fuse.c    | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/deskutils/xdg-desktop-portal/files/patch-document-portal_document-portal-fuse.c b/deskutils/xdg-desktop-portal/files/patch-document-portal_document-portal-fuse.c
new file mode 100644
index 000000000000..d5cc842cec19
--- /dev/null
+++ b/deskutils/xdg-desktop-portal/files/patch-document-portal_document-portal-fuse.c
@@ -0,0 +1,21 @@
+--- document-portal/document-portal-fuse.c.orig	2025-05-20 17:07:14 UTC
++++ document-portal/document-portal-fuse.c
+@@ -429,14 +429,18 @@ renameat2_flags_to_string (int flags)
+ #if HAVE_RENAMEAT2
+   GString *s = g_string_new ("");
+ 
++#ifdef RENAME_EXCHANGE
+   if (flags & RENAME_EXCHANGE)
+     g_string_append (s, "EXCHANGE,");
++#endif
+ 
+   if (flags & RENAME_NOREPLACE)
+     g_string_append (s, "NOREPLACE,");
+ 
++#ifdef RENAME_WHITEOUT
+   if (flags & RENAME_WHITEOUT)
+     g_string_append (s, "WHITEOUT,");
++#endif
+ 
+   /* Remove last comma */
+   if (s->len > 0)