git » nmdb » commit 7c3ef8c

libnmdb: Add missing includes

author Alberto Bertogli
2010-05-26 00:00:11 UTC
committer Alberto Bertogli
2010-05-26 00:01:31 UTC
parent 92436bfcc1156e9828da75412fac89b17c5e35c7

libnmdb: Add missing includes

These were missing, but only showed up when building without any network
protocol.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

libnmdb/nmdb.h +1 -0
libnmdb/sctp.h +2 -0
libnmdb/tcp.h +2 -0
libnmdb/tipc.h +2 -0
libnmdb/udp.h +2 -0

diff --git a/libnmdb/nmdb.h b/libnmdb/nmdb.h
index cf18485..3c5d49a 100644
--- a/libnmdb/nmdb.h
+++ b/libnmdb/nmdb.h
@@ -4,6 +4,7 @@
 #ifndef _NMDB_H
 #define _NMDB_H
 
+#include <stdlib.h>	/* size_t, ssize_t */
 
 /** Opaque type representing a connection with one or more servers. */
 typedef struct nmdb_conn nmdb_t;
diff --git a/libnmdb/sctp.h b/libnmdb/sctp.h
index 21eb074..b44ebc9 100644
--- a/libnmdb/sctp.h
+++ b/libnmdb/sctp.h
@@ -2,6 +2,8 @@
 #ifndef _SCTP_H
 #define _SCTP_H
 
+#include "internal.h"
+
 int sctp_srv_send(struct nmdb_srv *srv, unsigned char *buf, size_t bsize);
 uint32_t sctp_get_rep(struct nmdb_srv *srv,
 		unsigned char *buf, size_t bsize,
diff --git a/libnmdb/tcp.h b/libnmdb/tcp.h
index 1459d42..881ee73 100644
--- a/libnmdb/tcp.h
+++ b/libnmdb/tcp.h
@@ -2,6 +2,8 @@
 #ifndef _TCP_H
 #define _TCP_H
 
+#include "internal.h"
+
 int tcp_srv_send(struct nmdb_srv *srv, unsigned char *buf, size_t bsize);
 uint32_t tcp_get_rep(struct nmdb_srv *srv,
 		unsigned char *buf, size_t bsize,
diff --git a/libnmdb/tipc.h b/libnmdb/tipc.h
index 82b8cb2..db29a70 100644
--- a/libnmdb/tipc.h
+++ b/libnmdb/tipc.h
@@ -2,6 +2,8 @@
 #ifndef _TIPC_H
 #define _TIPC_H
 
+#include "internal.h"
+
 int tipc_srv_send(struct nmdb_srv *srv,
 		const unsigned char *buf, size_t bsize);
 uint32_t tipc_get_rep(struct nmdb_srv *srv,
diff --git a/libnmdb/udp.h b/libnmdb/udp.h
index c989a83..74444eb 100644
--- a/libnmdb/udp.h
+++ b/libnmdb/udp.h
@@ -2,6 +2,8 @@
 #ifndef _UDP_H
 #define _UDP_H
 
+#include "internal.h"
+
 int udp_srv_send(struct nmdb_srv *srv, unsigned char *buf, size_t bsize);
 uint32_t udp_get_rep(struct nmdb_srv *srv,
 		unsigned char *buf, size_t bsize,