fd_util: make C++ safe
This commit is contained in:
parent
695ffedef9
commit
af4252bc80
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user