I think this will work for all architectures:

Version diff for linux-mdep.c, version 2.109
--- /rsys/tmp/sccsdiff.12891/linux-mdep.c       Tue Sep  9 11:47:25 2003
+++ /data/gcom/gcom/rsys/linux/LiS-2.16/head/linux-mdep.c       Tue Sep  9 11:44:46 2003

@@ -155,7 +155,11 @@
 #define __NR_syscall_mknod     __NR_mknod
 #define __NR_syscall_unlink    __NR_unlink
 #define __NR_syscall_mount     __NR_mount
+#if defined(_ASM_IA64_UNISTD_H)
+#define __NR_syscall_umount2   __NR_umount
+#else
 #define __NR_syscall_umount2   __NR_umount2
+#endif

 static inline _syscall3(long,syscall_mknod,const char *,file,int,mode,int,dev)
 static inline _syscall1(long,syscall_unlink,const char *,file)


-- Dave

At 04:33 PM 9/8/2003 Monday, Paul Landay wrote:
David,
  Thanks for those three changes.  With those changes and
  the ldltest.c change in my original post and the following
  change to head/linux-mdep.c, LiS 2.16.13 builds and insmods
  cleanly on RedHat7.2-ia64.  It also rmmods cleanly.  There
  were some compiler warnings like:
    warning: cast from pointer to integer of different size
  and the strtst fails about 1/2 thru, so I will look at those
  casts next.  timetst seemed to work ok.  I don't exactly
  know why RedHat7.2-ia64 didn't like umount2, or even if this
  change is valid, but it compiles ok.

  # diff LiS-2.16*/head/linux-mdep.c
  158c158
  < #define __NR_syscall_umount   __NR_umount
  ---
  > #define __NR_syscall_umount2  __NR_umount2
  164c164
  < static inline _syscall2(long,syscall_umount,char *,file,int,flags)
  ---
  > static inline _syscall2(long,syscall_umount2,char *,file,int,flags)
  4478c4478
  <     ret = syscall_umount(path, flags) ;
  ---
  >     ret = syscall_umount2(path, flags) ;

Paul Landay

_______________________________________________
Linux-streams mailing list
[EMAIL PROTECTED]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

Reply via email to