diff --git a/msgconnector/Makefile b/msgconnector/Makefile
index 6d435f0de2d45397e3d6ffa44b02fe96bedad61c..7fa9607bb6c5438cb641107f76a68244c6124f26 100644
--- a/msgconnector/Makefile
+++ b/msgconnector/Makefile
@@ -4,7 +4,7 @@
 
 DISTNAME=		msgconnector-${VERSION}
 VERSION=		2.1.0
-PKGREVISION=
+PKGREVISION=    1
 CATEGORIES=		planning
 MASTER_SITES=		${MASTER_SITE_OPENROBOTS:=msgconnector/}
 MASTER_REPOSITORY=	${MASTER_REPOSITORY_OPENROBOTS}msgconnector
diff --git a/msgconnector/distinfo b/msgconnector/distinfo
index 3e544d1c571be5921f062f3db89ed4b5849b7363..81a9f136ffb5ad2a2f6986e6e0f81e57b1e18853 100644
--- a/msgconnector/distinfo
+++ b/msgconnector/distinfo
@@ -1,3 +1,4 @@
 SHA1 (msgconnector-2.1.0.tar.gz) = ec96eb84768611e0356c964fcc68d6fe0b686e57
 RMD160 (msgconnector-2.1.0.tar.gz) = a0f59a10dc84c252958ed38ef83f40793c324c82
 Size (msgconnector-2.1.0.tar.gz) = 17094 bytes
+SHA1 (patch-aa) = 94897e202f4156559d6b99571769c49954ca5930
diff --git a/msgconnector/patches/patch-aa b/msgconnector/patches/patch-aa
new file mode 100644
index 0000000000000000000000000000000000000000..904fc34cea3b14450882a5bb3b294738efe5e7ab
--- /dev/null
+++ b/msgconnector/patches/patch-aa
@@ -0,0 +1,22 @@
+Add missing unistd.h include for close(2)
+
+--- isocket/iserver.hh.orig	2013-02-26 10:29:48.651007333 +0100
++++ isocket/iserver.hh	2013-02-26 10:30:12.031006747 +0100
+@@ -5,6 +5,7 @@
+ #include <netinet/in.h>
+ #include <netinet/tcp.h>
+ #include <iostream>
++#include <unistd.h>
+ #include <vector>
+ 
+ #include "imsg.hh"
+--- isocket/iclient.hh.orig	2013-01-21 17:29:15.000000000 +0100
++++ isocket/iclient.hh	2013-02-26 10:31:09.303005310 +0100
+@@ -4,6 +4,7 @@
+ #include <sys/epoll.h>
+ #include <netinet/tcp.h>
+ #include <netdb.h> 
++#include <unistd.h>
+ 
+ #include "imsg.hh"
+ #include "message.hh"