Amd64 cross-compilation fix.
* Remove usage of _MINIX and __i386__ in mkfs.c to make conditional compilation orthogonal.
This commit is contained in:
parent
41ab295654
commit
2af02e0d5d
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@
|
|||
#include "const.h"
|
||||
#include "type.h"
|
||||
#include "mfsdir.h"
|
||||
#if (defined(__minix) && defined(__i386__))
|
||||
#if defined(__minix)
|
||||
#include <minix/partition.h>
|
||||
#include <minix/u64.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
@ -277,7 +277,7 @@ char *argv[];
|
|||
if (blocks == 0) pexit("Can't open prototype file");
|
||||
}
|
||||
if (i == 0) {
|
||||
#if defined(_MINIX) || defined(__minix)
|
||||
#if defined(__minix)
|
||||
uint32_t kb = div64u(mul64u(blocks, block_size), 1024);
|
||||
#else
|
||||
uint32_t kb = ((unsigned long long) blocks * block_size) / 1024;
|
||||
|
|
Loading…
Reference in a new issue