Skip to content

Commit

Permalink
Include sys/sysmacros.h
Browse files Browse the repository at this point in the history
The major, minor & makedev macros are not supposed to be included
with sys/types.h but glibc has done this against POSIX standards.

Alternative libcs aren't able to be used because of this and glibc
has expressed interest in correcting this behaviour in a future
release.
  • Loading branch information
anthonyryan1 authored and cvaroqui committed Feb 10, 2017
1 parent 3552675 commit ea43671
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions kpartx/dasd.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <sys/ioctl.h>
#include <linux/hdreg.h>
#include <errno.h>
Expand Down
1 change: 1 addition & 0 deletions kpartx/kpartx.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <stdint.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <sys/types.h>
#include <ctype.h>
#include <libdevmapper.h>
Expand Down
1 change: 1 addition & 0 deletions libmultipath/checkers/tur.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/sysmacros.h>
#include <errno.h>
#include <sys/time.h>
#include <pthread.h>
Expand Down
1 change: 1 addition & 0 deletions libmultipath/devmapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <ctype.h>
#include <unistd.h>
#include <errno.h>
#include <sys/sysmacros.h>

#include "checkers.h"
#include "vector.h"
Expand Down
1 change: 1 addition & 0 deletions libmultipath/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <pthread.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <sys/types.h>
#include <unistd.h>

Expand Down

0 comments on commit ea43671

Please sign in to comment.