- 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
20 lines
288 B
C
20 lines
288 B
C
/* The <dir.h> header gives the layout of a directory. */
|
|
|
|
#ifndef _DIR_H
|
|
#define _DIR_H
|
|
|
|
#include <minix/types.h>
|
|
|
|
#define DIRBLKSIZ 512 /* size of directory block */
|
|
|
|
#ifndef DIRSIZ
|
|
#define DIRSIZ 60
|
|
#endif
|
|
|
|
struct direct {
|
|
ino_t d_ino;
|
|
char d_name[DIRSIZ];
|
|
};
|
|
|
|
#endif /* _DIR_H */
|