Opened 16 years ago
Closed 16 years ago
#3780 closed bug (fixed)
Missing support for building to partition from MacOSX/Darwin
Reported by: | awpeter | Owned by: | bonefish |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Build System | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
hrev30234 There is currently no way to build Haiku directly to a partition from Mac OS. Some part seems to be missing (i think where it figures out the geometry of the hard disk) in src/tools/fs_shell/unistd.cpp, since there are ifdefs for every platform except Darwin.
Attachments (1)
Change History (3)
by , 16 years ago
Attachment: | unistd_macosx.diff added |
---|
comment:1 by , 16 years ago
The attached patch adds support for geometry detection on Mac OS X.
The system does not seems to provide a way to get the disk geometry directly ; I used Darwin's fdisk source code as a reference to calculate them from the disk size.
This allows building Haiku to a partition, at least on my hardware.
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks! Applied in hrev30289. I enforced the 80 columns per line limit, though.
unistd.cpp patch for Darwin/Mac OS X