configure: clean up libverbs configure test
authorSitsofe Wheeler <sitsofe@yahoo.com>
Thu, 17 Aug 2017 21:45:03 +0000 (22:45 +0100)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Fri, 18 Aug 2017 18:52:44 +0000 (19:52 +0100)
Compiling the libverbs configure test generated warnings which would
cause libverbs to be detected as unavailable when using -Werror. Fix
this by changing an include to infiniband/verbs.h and eliminate the
unused stdio.h include while we're here.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
configure

index 59af1b6c3d1b8df402300b85b9ea454dd9c0c927..cefd61032284ddc36013a7d7ab1d8aaa9bc71b71 100755 (executable)
--- a/configure
+++ b/configure
@@ -697,8 +697,7 @@ if test "$libverbs" != "yes" ; then
   libverbs="no"
 fi
 cat > $TMPC << EOF
-#include <stdio.h>
-#include <infiniband/arch.h>
+#include <infiniband/verbs.h>
 int main(int argc, char **argv)
 {
   struct ibv_pd *pd = ibv_alloc_pd(NULL);