summaryrefslogtreecommitdiff
path: root/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/compat.c b/compat.c
new file mode 100644
index 0000000..7c4e346
--- /dev/null
+++ b/compat.c
@@ -0,0 +1,22 @@
+/* Copyright 2011 NORDUnet A/S. All rights reserved.
+ See LICENSE for licensing information. */
+
+#if defined HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <sys/types.h>
+#include <sys/socket.h>
+#include "compat.h"
+
+ssize_t
+compat_send (int sockfd, const void *buf, size_t len, int flags)
+{
+ return send (sockfd, buf, len, flags);
+}
+
+ssize_t
+compat_recv (int sockfd, void *buf, size_t len, int flags)
+{
+ return recv (sockfd, buf, len, flags);
+}