summaryrefslogtreecommitdiff
path: root/lib/compat.c
blob: ccc638845238cc37b6d6619b58bea1b3066e9301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Copyright 2011 NORDUnet A/S. All rights reserved.
   See the file COPYING 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);
}