[Fakeroot-commits] [SCM] fakeroot branch, upstream, updated. 08ed00124d8b6b445d3b91a9aa15eec638b02f05

Clint Adams schizo at debian.org
Sun Nov 15 03:17:27 UTC 2009


The following commit has been merged in the upstream branch:
commit 87b5e44daa26e2e91201d29964b161bf1eeaaf1e
Author: Clint Adams <schizo at debian.org>
Date:   Mon Jan 21 22:19:21 2008 +0000

    Apply patch from Andrew Benham to handle padding under Sun Studio on Solaris.
    
    git-archimport-id: fakeroot at packages.debian.org--fakeroot/fakeroot--main--0.0--patch-158

diff --git a/message.h b/message.h
index cdb51b6..83ca184 100644
--- a/message.h
+++ b/message.h
@@ -30,6 +30,9 @@ typedef uint32_t fake_gid_t;
 typedef uint32_t fake_mode_t;
 typedef uint32_t fake_nlink_t;
 
+#if __SUNPRO_C
+#pragma pack(4)
+#endif
 struct fakestat {
 	fake_uid_t   uid;
 	fake_gid_t   gid;
@@ -39,7 +42,13 @@ struct fakestat {
 	fake_mode_t  mode;
 	fake_nlink_t nlink;
 } FAKEROOT_ATTR(packed);
+#if __SUNPRO_C
+#pragma pack()
+#endif
 
+#if __SUNPRO_C
+#pragma pack(4)
+#endif
 struct fake_msg {
 #ifndef FAKEROOT_FAKENET
 	long mtype; /* message type in SYSV message sending */
@@ -52,5 +61,8 @@ struct fake_msg {
 	struct fakestat st;
 	uint32_t        remote;
 } FAKEROOT_ATTR(packed);
+#if __SUNPRO_C
+#pragma pack()
+#endif
 
 #endif

-- 
fakeroot



More information about the Fakeroot-commits mailing list