aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-12-04 13:15:21 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-12-04 13:15:21 +0100
commit305f097af50e3e5380746b832b9cb0cef74aeff8 (patch)
treeb05347595a4760d7fef5cc36cde28af3b92354c2 /libglouglou
parentadd ggnet_conn_find() (diff)
downloadglouglou-305f097af50e3e5380746b832b9cb0cef74aeff8.tar.xz
glouglou-305f097af50e3e5380746b832b9cb0cef74aeff8.zip
add ifdef for the whole libggnet lib to protect against multiple inclusions
Diffstat (limited to 'libglouglou')
-rw-r--r--libglouglou/libggnet.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libglouglou/libggnet.h b/libglouglou/libggnet.h
index 17be7e8..3d5eda4 100644
--- a/libglouglou/libggnet.h
+++ b/libglouglou/libggnet.h
@@ -1,3 +1,6 @@
+#ifndef _LIBGGNET_H_
+#define _LIBGGNET_H_
+
#include <sys/types.h>
#include <netinet/in.h>
@@ -68,3 +71,5 @@ void ggnet_conn_data(struct ggnet *, struct ggnet_conn *,
void ggnet_conn_del(struct ggnet *, struct ggnet_conn *);
struct ggnet_conn *ggnet_conn_find(struct ggnet *, struct in_addr *);
void ggnet_time_update(struct ggnet *, time_t);
+
+#endif /* _LIBGGNET_H_ */