glibc-2.25 generates a deprecation warning for using 'major'
macro without including sysmacros.h.
https://sourceware.org/glibc/wiki/Release/2.25
This is breaking Fedora builds of open-vm-tools because
Fedora 26 is switching to glibc-2.25.
/*********************************************************
- * Copyright (C) 2004-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2004-2017 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
#include <stdio.h>
#include <sys/stat.h>
#if defined(__linux__) || defined(sun)
+# if defined(__linux__)
+# include <sys/sysmacros.h>
+# endif
# include <sys/vfs.h>
#elif defined(__FreeBSD__) || defined(__APPLE__)
# include <sys/param.h>
#include "vmware.h"
#include "wiper.h"
-#include "util.h"
#include "str.h"
#include "strutil.h"
#include "fileIO.h"