[openib-general] [PATCH 1/2] Trivial warning fix for libehca

Roland Dreier rdreier at cisco.com
Thu Apr 20 12:09:49 PDT 2006


At least on my system running the Debian testing toolchain, I get
warnings "implicit declaration of function 'free'" when building
libehca.  This trivial patch adds includes of <stdlib.h> to pick up
the declaration of free().

Signed-off-by: Roland Dreier <rolandd at cisco.com>

--- src/userspace/libehca/src/ehca_u_mrmw.c	(revision 6541)
+++ src/userspace/libehca/src/ehca_u_mrmw.c	(working copy)
@@ -40,6 +40,7 @@
 
 #define DEB_PREFIX "umrw"
 
+#include <stdlib.h>
 #include <infiniband/driver.h>
 #include "ehca_utools.h"
 
--- src/userspace/libehca/src/ehca_umain.c	(revision 6541)
+++ src/userspace/libehca/src/ehca_umain.c	(working copy)
@@ -50,6 +50,7 @@
 #include "ipzu_pt_fn.h"
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <errno.h>
 #include <sys/mman.h>
 #include <netinet/in.h>



More information about the general mailing list