diff options
authorKaleb S. KEITHLEY <>2016-08-16 12:14:43 -0400
committerNiels de Vos <>2016-08-19 03:58:39 -0700
commitc441a0ae5aca1f2977961afecb3236f90eb5b672 (patch)
parent4b01d6ea8da137f23a4372df35fcbd5dbec21d09 (diff)
core: use <sys/sysmacros.h> for makedev(3), major(3), minor(3)
gnu glibc (libc) in Fedora 26 (rawhide) has turned off "compat" for makedev(), major(), and minor(3) decls. 3.8.2 on F26 built with warnings, see: More recent builds of other packages (namely nfs-ganesha) indicate that these warnings would now be errors, and, will be errors when 3.8.3 is released and built. Change-Id: I3caa0d05f5de695818753e40e754da8b40d2011c BUG: 1367527 Signed-off-by: Kaleb S. KEITHLEY <> Reviewed-on: Smoke: Gluster Build System <> NetBSD-regression: NetBSD Build System <> CentOS-regression: Gluster Build System <> Reviewed-by: Niels de Vos <>
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/iatt.h b/libglusterfs/src/iatt.h
index 2b2f7b9e503..b8907598b18 100644
--- a/libglusterfs/src/iatt.h
+++ b/libglusterfs/src/iatt.h
@@ -12,6 +12,9 @@
#ifndef _IATT_H
#define _IATT_H
+#if defined(GF_LINUX_HOST_OS)
+#include <sys/sysmacros.h> /* for makedev(3), major(3), minor(3) */
#include <sys/types.h>
#include <sys/stat.h> /* for iatt <--> stat conversions */
#include <unistd.h>