sys/disk/*.h: Include sys/types.h

All these files use types defined by sys/types.h. Add an include of it
at the top to make them standalone.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2021-11-24 10:41:57 -07:00
parent 242d6201a6
commit fde1edaae7
5 changed files with 10 additions and 0 deletions

View File

@ -29,6 +29,8 @@
#ifndef _SYS_DISK_APM_H_
#define _SYS_DISK_APM_H_
#include <sys/types.h>
/* Driver Descriptor Record. */
struct apm_ddr {
uint16_t ddr_sig;

View File

@ -33,6 +33,8 @@
#ifndef _SYS_DISK_BSD_H_
#define _SYS_DISK_BSD_H_
#include <sys/types.h>
/* The disk magic number */
#define BSD_MAGIC 0x82564557U

View File

@ -29,6 +29,8 @@
#ifndef _SYS_DISK_GPT_H_
#define _SYS_DISK_GPT_H_
#include <sys/types.h>
/*
* Applications can define GPT_UUID_TYPE if they want the GPT structures
* to use a particular type definition for UUIDs/GUIDs. This header uses

View File

@ -33,6 +33,8 @@
#ifndef _SYS_DISK_MBR_H_
#define _SYS_DISK_MBR_H_
#include <sys/types.h>
#define DOSBBSECTOR 0 /* DOS boot block relative sector number */
#define DOSDSNOFF 440 /* WinNT/2K/XP Drive Serial Number offset */
#define DOSPARTOFF 446

View File

@ -29,6 +29,8 @@
#ifndef _SYS_DISK_VTOC_H_
#define _SYS_DISK_VTOC_H_
#include <sys/types.h>
#define VTOC_TAG_UNASSIGNED 0x00
#define VTOC_TAG_BOOT 0x01
#define VTOC_TAG_ROOT 0x02