From bc66dc45e6450c67320ba0408d5c34ebcafa0cb6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Jan 2013 21:42:55 +0100 Subject: server_socket: convert to C++ --- src/socket_util.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/socket_util.h') diff --git a/src/socket_util.h b/src/socket_util.h index 4cf845d8e..3f602cd53 100644 --- a/src/socket_util.h +++ b/src/socket_util.h @@ -32,6 +32,10 @@ struct sockaddr; +#ifdef __cplusplus +extern "C" { +#endif + /** * Creates a socket listening on the specified address. This is a * shortcut for socket(), bind() and listen(). @@ -55,4 +59,8 @@ socket_bind_listen(int domain, int type, int protocol, int socket_keepalive(int fd); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3