From b84f8006c8792fa7d5818298fbe6a6ce48fcaa94 Mon Sep 17 00:00:00 2001 From: David Smith Date: Thu, 16 Jan 2014 11:23:12 -0600 Subject: [PATCH] PR16460: Fix ia64 compile problem when using 'syscall.umount'. * runtime/linux/compat_unistd.h: Add '__NR_umount2' for ia64. --- runtime/linux/compat_unistd.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/runtime/linux/compat_unistd.h b/runtime/linux/compat_unistd.h index 7417ebaf8..d3fdeed09 100644 --- a/runtime/linux/compat_unistd.h +++ b/runtime/linux/compat_unistd.h @@ -87,4 +87,15 @@ #endif /* __powerpc64__ || __s390x__ */ +#if defined(__ia64__) + +// On RHEL5 ia64, __NR_umount2 doesn't exist. So, define it in terms +// of __NR_umount. + +#ifndef __NR_umount2 +#define __NR_umount2 __NR_umount +#endif + +#endif /* __ia64__ */ + #endif /* _COMPAT_UNISTD_H_ */ -- 2.43.5