diff mbox series

[committed,GCC9] libphobos: Fix struct layout of stat_t on sparc-*-solaris*

Message ID 20200516205652.8232-1-ibuclaw@gdcproject.org
State New
Headers show
Series [committed,GCC9] libphobos: Fix struct layout of stat_t on sparc-*-solaris* | expand

Commit Message

Iain Buclaw May 16, 2020, 8:56 p.m. UTC
Hi,

The last change to the bindings removed the st_pad3 field from the wrong
struct.  It should have been stat64_t that needed updating instead.

Patch backported from r10-8066, committed to gcc-9 branch.

Iain.

---
libphobos/ChangeLog

	PR d/90719
	* libdruntime/core/sys/posix/sys/stat.d (Solaris): Move st_pad3 from
	struct stat64_t to stat32_t.
---
 libphobos/libdruntime/core/sys/posix/sys/stat.d | 2 +-
 1 file changed, 1 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libphobos/libdruntime/core/sys/posix/sys/stat.d b/libphobos/libdruntime/core/sys/posix/sys/stat.d
index 9fc89270d48..f394823767d 100644
--- a/libphobos/libdruntime/core/sys/posix/sys/stat.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/stat.d
@@ -1314,6 +1314,7 @@  else version (Solaris)
             dev_t st_rdev;
             c_long[2] st_pad2;
             off_t st_size;
+            c_long st_pad3;
             union
             {
                 timestruc_t st_atim;
@@ -1347,7 +1348,6 @@  else version (Solaris)
             dev_t st_rdev;
             c_long[2] st_pad2;
             off64_t st_size;
-            c_long st_pad3;
             union
             {
                 timestruc_t st_atim;