[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: build error for dbootstrap on sparc



David Whedon <dwhedon@gordian.com> writes:

> Maybe I should do this?  Looks ugly, but might not break ppc:
> 
> Index: partbl_msdos.c
> ===================================================================
> RCS file: /cvs/debian-boot/boot-floppies/utilities/libfdisk/partbl_msdos.c,v
> retrieving revision 1.9
> diff -u -r1.9 partbl_msdos.c
> --- partbl_msdos.c	2001/05/11 06:37:50	1.9
> +++ partbl_msdos.c	2001/05/11 06:49:40
> @@ -22,6 +22,11 @@
>   * frequently the case with the nr_sects and start_sect partition
>   * table entries.
>   */
> +
> +#include <linux/version.h>
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)) && defined __powerpc__
> +#define __KERNEL__
> +#endif
>  #include <asm/unaligned.h>
>  
>  #define SYS_IND(p)	(get_unaligned(&p->sys_ind))
> 
> 
> I eagerly await replies,

Yes, please do this.  It contains the hackage to PowerPC.

No userland code should ever need to define __KERNEL__.
Thus, even for PowerPC, I hope there is a bug filed somewhere, such
that once that gets fixed, we can remove that hack.  If not, there
should be.  If so, please put the bug# in the comments there.

Thanks.

-- 
.....Adam Di Carlo....adam@onshore.com.....<URL:http://www.onshored.com/>



Reply to: