diff --git a/glnx-fdio.c b/glnx-fdio.c
index 31bb15d246c8691ffb5132481d5dcaeb960c794f..6ae6ec7e327f3cced32466d9513341bfd3600218 100644
--- a/glnx-fdio.c
+++ b/glnx-fdio.c
@@ -939,7 +939,7 @@ glnx_regfile_copy_bytes (int fdf, int fdt, off_t max_bytes)
 gboolean
 glnx_file_copy_at (int                   src_dfd,
                    const char           *src_subpath,
-                   struct stat          *src_stbuf,
+                   const struct stat    *src_stbuf,
                    int                   dest_dfd,
                    const char           *dest_subpath,
                    GLnxFileCopyFlags     copyflags,
diff --git a/glnx-fdio.h b/glnx-fdio.h
index 9c57dc5ee290070f69313b8b3b8329de8965016d..f95e473f8cfdc65e37a1262e3d69761095597725 100644
--- a/glnx-fdio.h
+++ b/glnx-fdio.h
@@ -193,7 +193,7 @@ typedef enum {
 gboolean
 glnx_file_copy_at (int                   src_dfd,
                    const char           *src_subpath,
-                   struct stat          *src_stbuf,
+                   const struct stat    *src_stbuf,
                    int                   dest_dfd,
                    const char           *dest_subpath,
                    GLnxFileCopyFlags     copyflags,