summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2017-07-19 16:24:27 -0400
committerSteve Dickson <steved@redhat.com>2017-07-26 11:27:23 -0400
commitb3b59568db7c96a3ed4a683f40e34542d63071cb (patch)
treeb2eb7b5a445f6eff2d75d480eef0050795a8f2b3
parent65675d17d235874572a18fe2f4656e97dc699fe0 (diff)
downloadnfs-utils-b3b59568db7c96a3ed4a683f40e34542d63071cb.tar.gz
nfs-utils-b3b59568db7c96a3ed4a683f40e34542d63071cb.tar.xz
nfs-utils-b3b59568db7c96a3ed4a683f40e34542d63071cb.zip
device-discovery.c: removed a warning
device-discovery.c:171:13: warning: In the GNU C Library, "major" 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 "major", include <sys/sysmacros.h> directly. If you did not intend to use a system-defined macro "major", you should undefine it after including <sys/types.h>. } else if (dm_is_dm_major(major(dev))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/blkmapd/device-discovery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/blkmapd/device-discovery.c b/utils/blkmapd/device-discovery.c
index c66669d..29bafb2 100644
--- a/utils/blkmapd/device-discovery.c
+++ b/utils/blkmapd/device-discovery.c
@@ -26,6 +26,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/sysmacros.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>