diff options
Diffstat (limited to 'src/socket_util.h')
-rw-r--r-- | src/socket_util.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |