Commit f7573e7a authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-33093 plugin/disks/information_schema_disks.cc doesn't compile on Solaris

Fix by Rainer Orth
parent 8172d077
...@@ -19,10 +19,14 @@ ...@@ -19,10 +19,14 @@
#include <sys/types.h> #include <sys/types.h>
#if defined(HAVE_GETMNTENT) #if defined(HAVE_GETMNTENT)
#include <mntent.h> #include <mntent.h>
#elif defined(HAVE_SYS_MNTENT)
#include <sys/mntent.h>
#elif !defined(HAVE_GETMNTINFO_TAKES_statvfs) #elif !defined(HAVE_GETMNTINFO_TAKES_statvfs)
/* getmntinfo (the not NetBSD variants) */ /* getmntinfo (the not NetBSD variants) */
#include <sys/param.h> #include <sys/param.h>
#if defined(HAVE_SYS_UCRED)
#include <sys/ucred.h> #include <sys/ucred.h>
#endif
#include <sys/mount.h> #include <sys/mount.h>
#endif #endif
#if defined(HAVE_GETMNTENT_IN_SYS_MNTAB) #if defined(HAVE_GETMNTENT_IN_SYS_MNTAB)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment