Skip to contentSkip to conversation

fix flock64 structure on PPC

PATCH New Gary Thomas 1 participant 1 message Mar 17, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix flock64 structure on PPC

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

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
syscall_defs.h +3 -0
Index: linux-user/syscall_defs.h
===================================================================
@@ -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;