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 <[EMAIL PROTECTED]>

--- 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>
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to