HomeClusterLabs Projects
Diffusion SBD ba3b4127f658

Fix: build error with glibc 2.25

Description

Fix: build error with glibc 2.25

Add include for makedev, major and minor

sbd-common.c:268:13: error: In the GNU C Library, "makedev" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "makedev", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"makedev", you should undefine it after including <sys/types.h>. [-Werror]

{makedev(10,130), 0};

Details

Provenance
Valentin Vidic <Valentin.Vidic@CARNet.hr>Authored on Nov 25 2017, 3:18 AM
Parents
rScad96b9cd07b: Merge pull request #34 from vvidic/gcc-format-error
Branches
Unknown
Tags
Unknown

Event Timeline