diff options
author | Linus Nordberg <linus@nordu.net> | 2011-03-12 12:41:19 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-03-12 12:41:19 +0100 |
commit | 2af84872cb78becf43f7bf4a654418fb7fc532d5 (patch) | |
tree | 7c3f33df5316fd67431fc4e70356d7a62da4543f /lib/compat.c | |
parent | 319c2bf1b2886b2e5cd1c5d60a8950493d2d4d75 (diff) | |
parent | efce8db03af505f76c0c579f2439757bd6998dc9 (diff) |
Merge branch 'udp' into libradsec.
Diffstat (limited to 'lib/compat.c')
-rw-r--r-- | lib/compat.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/compat.c b/lib/compat.c new file mode 100644 index 0000000..ccc6388 --- /dev/null +++ b/lib/compat.c @@ -0,0 +1,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); +} |