]> Zhao Yanbai Git Server - minix.git/commit
Changes to the include files in order to make cross-compilation possible.
authorTomas Hruby <tom@minix3.org>
Fri, 6 Nov 2009 08:46:22 +0000 (08:46 +0000)
committerTomas Hruby <tom@minix3.org>
Fri, 6 Nov 2009 08:46:22 +0000 (08:46 +0000)
commit0b8e20c89e994e29abe3013cddf442787ed11c9a
tree38e0b884bc7b700f53ed954754769217102c55e3
parent616d9366389c6e3bd347e88d307e0d31b06f8d32
Changes to the include files in order to make cross-compilation possible.

- The primary reason is that mkfs and installboot need to run natively during
  the cross compilation (host and target versions are compiled). There is a
  collision of include files though. E.g. a.out.h is very minix-specific.
  Therefore some files we moved and replaced by stubs that include the original
  file if compiling on or for Minix :

  include/a.out.h -> include/minix/a.out.h
  include/sys/dir.h -> include/minix/dir.h
  include/dirent.h -> include/minix/dirent.h
  include/sys/types.h -> include/minix/types.h

- This does not break any native compilation on Minix. Other headers that were
  including the original files are changed according to include directly the
  new, minix specific location not to pick up the host system includes while
  cross-compiling.

- role of this patch is to make rebasing of the build branch simpler until the
  new build system is merged
40 files changed:
include/a.out.h
include/alloca.h
include/dirent.h
include/fcntl.h
include/grp.h
include/lib.h
include/limits.h
include/minix/a.out.h [new file with mode: 0644]
include/minix/devio.h
include/minix/dir.h [new file with mode: 0644]
include/minix/dirent.h [new file with mode: 0644]
include/minix/ds.h
include/minix/ioctl.h
include/minix/partition.h
include/minix/portio.h
include/minix/profile.h
include/minix/safecopies.h
include/minix/syslib.h
include/minix/tty.h
include/minix/type.h
include/minix/types.h [new file with mode: 0644]
include/minix/u64.h
include/minix/vm.h
include/pwd.h
include/regex.h
include/signal.h
include/stdint.h
include/stdio.h
include/sys/dir.h
include/sys/mman.h
include/sys/select.h
include/sys/stat.h
include/sys/statfs.h
include/sys/svrctl.h
include/sys/types.h
include/sys/wait.h
include/timers.h
include/tools.h
include/unistd.h
include/utime.h