]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Include sysmacros.h directly as mandated by glibc-2.25.
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:30 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:30 +0000 (11:23 -0700)
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.

open-vm-tools/lib/wiper/wiperPosix.c

index d389eeeab31d5d536ee749d8a87ac8aa6a14055c..b41bd72b0ee918c8fbcbe1bb74ee8a7c21393e7a 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * 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
@@ -30,6 +30,9 @@
 #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>
@@ -44,7 +47,6 @@
 
 #include "vmware.h"
 #include "wiper.h"
-#include "util.h"
 #include "str.h"
 #include "strutil.h"
 #include "fileIO.h"