fd_util: make C++ safe
This commit is contained in:
parent
695ffedef9
commit
af4252bc80
@ -51,6 +51,10 @@
|
|||||||
|
|
||||||
struct sockaddr;
|
struct sockaddr;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper for dup(), which sets the CLOEXEC flag on the new
|
* Wrapper for dup(), which sets the CLOEXEC flag on the new
|
||||||
* descriptor.
|
* descriptor.
|
||||||
@ -146,4 +150,8 @@ inotify_init_cloexec(void);
|
|||||||
int
|
int
|
||||||
close_socket(int fd);
|
close_socket(int fd);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} /* extern "C" */
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user