From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Lingmo OS Team <team@lingmo.org>
Date: May, 01 2026 17:07:18 +0000
Subject: [PATCH] <short summary of the patch>

TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-<Vendor>: <vendor-bugtracker-url>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>

--- lightdm-1.30.0.orig/tests/src/libsystem.c
+++ lightdm-1.30.0/tests/src/libsystem.c
@@ -73,6 +73,12 @@ struct pam_handle
     struct pam_conv conversation;
 };
 
+/* glibc no longer declares these internal wrappers in public headers. */
+int __xstat (int version, const char *path, struct stat *buf);
+int __xstat64 (int version, const char *path, struct stat64 *buf);
+int __fxstatat (int ver, int dirfd, const char *pathname, struct stat *buf, int flags);
+int __fxstatat64 (int ver, int dirfd, const char *pathname, struct stat64 *buf, int flags);
+
 int
 gethostname (char *name, size_t len)
 {
