The attached patch makes the flock64 functions work for PPC
targets (target alignment didn't match up)

--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
Index: linux-user/syscall_defs.h
===================================================================
--- linux-user/syscall_defs.h   (revision 4118)
+++ linux-user/syscall_defs.h   (revision 4119)
@@ -1762,6 +1762,9 @@
 struct target_flock64 {
        short  l_type;
        short  l_whence;
+#ifdef TARGET_PPC
+    int __pad;
+#endif
        unsigned long long l_start;
        unsigned long long l_len;
        int  l_pid;

Reply via email to