fd_util: make C++ safe

This commit is contained in:
Max Kellermann 2012-08-22 13:30:09 +02:00
parent 695ffedef9
commit af4252bc80

View File

@ -51,6 +51,10 @@
struct sockaddr;
#ifdef __cplusplus
extern "C" {
#endif
/**
* Wrapper for dup(), which sets the CLOEXEC flag on the new
* descriptor.
@ -146,4 +150,8 @@ inotify_init_cloexec(void);
int
close_socket(int fd);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif