KVM test: Fix the build error of libhugetlbfs in some OS

Libhugetlbfs could not be compiled in my Fedora-13, the reason is that
S_ISDIR was defined in <sys/stat.h> which needs to be included in
elflink.c. This patch solves this problem through applying a patch
before doing the test.

Signed-off-by: Jason Wang <jasowang@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4362 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/libhugetlbfs/elflink.patch b/client/tests/libhugetlbfs/elflink.patch
new file mode 100644
index 0000000..5707766
--- /dev/null
+++ b/client/tests/libhugetlbfs/elflink.patch
@@ -0,0 +1,12 @@
+diff --git a/elflink.c b/elflink.c
+index c39c04e..92729cc 100644
+--- a/elflink.c
++++ b/elflink.c
+@@ -37,6 +37,7 @@
+ #include <limits.h>
+ #include <elf.h>
+ #include <dlfcn.h>
++#include <sys/stat.h>
+ 
+ #include "version.h"
+ #include "hugetlbfs.h"