Skip to content

Commit cceed45

Browse files
committed
Auto merge of #2680 - glaubitz:m68k-linux, r=Amanieu
Build fixes for Linux/m68k This PR contains a few fixes on top of #2414 that were not previously discovered. I have verified that with these fixes applied, the libc module builds fine on Linux/m68k.
2 parents f0a06e2 + 7987180 commit cceed45

File tree

1 file changed

+15
-15
lines changed
  • src/unix/linux_like/linux/gnu/b32/m68k

1 file changed

+15
-15
lines changed

src/unix/linux_like/linux/gnu/b32/m68k/mod.rs

+15-15
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,22 @@ s! {
4949
pub cuid: ::uid_t,
5050
pub cgid: ::gid_t,
5151
pub mode: ::mode_t,
52-
__seq: c_ushort,
53-
__pad1: c_ushort,
54-
__glibc_reserved1: c_ulong,
55-
__glibc_reserved2: c_ulong,
52+
__seq: ::c_ushort,
53+
__pad1: ::c_ushort,
54+
__glibc_reserved1: ::c_ulong,
55+
__glibc_reserved2: ::c_ulong,
5656
}
5757

5858
pub struct stat64 {
5959
pub st_dev: ::dev_t,
60-
__pad1: c_ushort,
61-
pub st_ino: ::ino64_t,
60+
__pad1: ::c_ushort,
61+
pub __st_ino: ::ino_t,
6262
pub st_mode: ::mode_t,
6363
pub st_nlink: ::nlink_t,
6464
pub st_uid: ::uid_t,
6565
pub st_gid: ::gid_t,
6666
pub st_rdev: ::dev_t,
67-
__pad2: c_ushort,
67+
__pad2: ::c_ushort,
6868
pub st_size: ::off64_t,
6969
pub st_blksize: ::blksize_t,
7070
pub st_blocks: ::blkcnt64_t,
@@ -543,14 +543,14 @@ pub const SYS_cacheflush: ::c_long = 123;
543543
pub const SYS_adjtimex_time32: ::c_long = 124;
544544
pub const SYS_mprotect: ::c_long = 125;
545545
pub const SYS_sigprocmask: ::c_long = 126;
546-
pub const SYS_ni_syscall: ::c_long = 127;
546+
pub const SYS_create_module: ::c_long = 127;
547547
pub const SYS_init_module: ::c_long = 128;
548548
pub const SYS_delete_module: ::c_long = 129;
549-
pub const SYS_ni_syscall: ::c_long = 130;
549+
pub const SYS_get_kernel_syms: ::c_long = 130;
550550
pub const SYS_quotactl: ::c_long = 131;
551551
pub const SYS_getpgid: ::c_long = 132;
552552
pub const SYS_fchdir: ::c_long = 133;
553-
pub const SYS_ni_syscall: ::c_long = 134;
553+
pub const SYS_bdflush: ::c_long = 134;
554554
pub const SYS_sysfs: ::c_long = 135;
555555
pub const SYS_personality: ::c_long = 136;
556556
pub const SYS_setfsuid16: ::c_long = 138;
@@ -564,7 +564,7 @@ pub const SYS_readv: ::c_long = 145;
564564
pub const SYS_writev: ::c_long = 146;
565565
pub const SYS_getsid: ::c_long = 147;
566566
pub const SYS_fdatasync: ::c_long = 148;
567-
pub const SYS_ni_syscall: ::c_long = 149;
567+
pub const SYS__sysctl: ::c_long = 149;
568568
pub const SYS_mlock: ::c_long = 150;
569569
pub const SYS_munlock: ::c_long = 151;
570570
pub const SYS_mlockall: ::c_long = 152;
@@ -582,9 +582,9 @@ pub const SYS_mremap: ::c_long = 163;
582582
pub const SYS_setresuid16: ::c_long = 164;
583583
pub const SYS_getresuid16: ::c_long = 165;
584584
pub const SYS_getpagesize: ::c_long = 166;
585-
pub const SYS_ni_syscall: ::c_long = 167;
585+
pub const SYS_query_module: ::c_long = 167;
586586
pub const SYS_poll: ::c_long = 168;
587-
pub const SYS_ni_syscall: ::c_long = 169;
587+
pub const SYS_nfsservctl: ::c_long = 169;
588588
pub const SYS_setresgid16: ::c_long = 170;
589589
pub const SYS_getresgid16: ::c_long = 171;
590590
pub const SYS_prctl: ::c_long = 172;
@@ -603,8 +603,8 @@ pub const SYS_capget: ::c_long = 184;
603603
pub const SYS_capset: ::c_long = 185;
604604
pub const SYS_sigaltstack: ::c_long = 186;
605605
pub const SYS_sendfile: ::c_long = 187;
606-
pub const SYS_ni_syscall: ::c_long = 188;
607-
pub const SYS_ni_syscall: ::c_long = 189;
606+
pub const SYS_getpmsg: ::c_long = 188;
607+
pub const SYS_putpmsg: ::c_long = 189;
608608
pub const SYS_vfork: ::c_long = 190;
609609
pub const SYS_getrlimit: ::c_long = 191;
610610
pub const SYS_mmap2: ::c_long = 192;

0 commit comments

Comments
 (0)