[systemd-devel] [PATCH] missing: Fix broken syscall(__NR_fanotify_mark... on ppc32

Andreas Schwab schwab at linux-m68k.org
Tue May 8 10:18:26 PDT 2012


The same situation as on o32 mips.
---
 src/shared/missing.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/missing.h b/src/shared/missing.h
index 5951e06..ecedf72 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -133,7 +133,7 @@ static inline int fanotify_init(unsigned int flags, unsigned int event_f_flags)
 
 static inline int fanotify_mark(int fanotify_fd, unsigned int flags, uint64_t mask,
                                 int dfd, const char *pathname) {
-#if defined _MIPS_SIM && _MIPS_SIM == _MIPS_SIM_ABI32
+#if defined _MIPS_SIM && _MIPS_SIM == _MIPS_SIM_ABI32 || defined __powerpc__ && !defined __powerpc64__
         union {
                 uint64_t _64;
                 uint32_t _32[2];
-- 
1.7.10.1


-- 
Andreas Schwab, schwab at linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


More information about the systemd-devel mailing list