Enable tls psk
[radsecproxy.git] / compat.c
1 /* Copyright 2011 NORDUnet A/S. All rights reserved.
2    See LICENSE for licensing information. */
3
4 #if defined HAVE_CONFIG_H
5 #include <config.h>
6 #endif
7
8 #include <sys/types.h>
9 #include <sys/socket.h>
10 #include "compat.h"
11
12 ssize_t
13 compat_send (int sockfd, const void *buf, size_t len, int flags)
14 {
15   return send (sockfd, buf, len, flags);
16 }
17
18 ssize_t
19 compat_recv (int sockfd, void *buf, size_t len, int flags)
20 {
21   return recv (sockfd, buf, len, flags);
22 }