From 76f22e4c2cda8bcb2e11c6153c4091eaa577fc1a Mon Sep 17 00:00:00 2001 From: "VMware, Inc" <> Date: Wed, 24 Feb 2010 13:03:30 -0800 Subject: [PATCH] OVT: have configure check for presence of linux/unistd.h Not everyone installs kernel-headers/linux-userspace-headers package and without it compilation fails with a puzzling error. We better check that the required header is present upfront. Signed-off-by: Marcelo Vanzin --- open-vm-tools/configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/open-vm-tools/configure.ac b/open-vm-tools/configure.ac index 71c4bf928..7be4fc5fb 100644 --- a/open-vm-tools/configure.ac +++ b/open-vm-tools/configure.ac @@ -812,6 +812,14 @@ AC_CHECK_HEADER( [HAVE_WCHAR_H="yes"], [HAVE_WCHAR_H="no"]) +if test "$os" = "linux"; then + # Make sure kernel-headers package is installed. + AC_CHECK_HEADER( + [linux/unistd.h], + [], + [AC_MSG_ERROR(linux/unistd.h is not found. Please install kernel-headers/linux-userspace-headers/linux-libc-dev package.)]) +fi + if test "$enable_multimon" != "no"; then AC_CHECK_HEADER( [X11/extensions/panoramiXproto.h], -- 2.47.3