Skip to content

Commit

Permalink
sys/disk/*.h: Include sys/types.h
Browse files Browse the repository at this point in the history
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

(cherry picked from commit fde1eda)
  • Loading branch information
bsdimp committed Dec 6, 2021
1 parent dbaeb2a commit ef4b102
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/sys/disk/apm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions sys/sys/disk/bsd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions sys/sys/disk/gpt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions sys/sys/disk/mbr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions sys/sys/disk/vtoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef4b102

Please sign in to comment.