summaryrefslogtreecommitdiff
path: root/lib/compat.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-03-03 16:05:48 +0100
committerLinus Nordberg <linus@nordu.net>2011-03-03 16:05:48 +0100
commit41a69151d5a375f524e2227f87979ff758bf2a62 (patch)
tree88ecbacb8131b14c1e9a4a3503179a618c0204ce /lib/compat.c
parentb01fafad7778040ec98619653328deecc1ef1ab1 (diff)
_init_evb: Don't crash on socket errors.
Diffstat (limited to 'lib/compat.c')
-rw-r--r--lib/compat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/compat.c b/lib/compat.c
new file mode 100644
index 0000000..731c071
--- /dev/null
+++ b/lib/compat.c
@@ -0,0 +1,8 @@
+#include <sys/types.h>
+#include <sys/socket.h>
+
+ssize_t
+compat_send (int sockfd, const void *buf, size_t len, int flags)
+{
+ compat_send (int sockfd, const void *buf, size_t len, int flags);
+}