extern "C" wrapper needed for inclusion from C++
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3870 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
155ae4c5cb
commit
c47667231a
@ -8,6 +8,10 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#if __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
typedef uint32 socklen_t;
|
||||
|
||||
/* These are the address/protocol families we'll be using... */
|
||||
@ -252,5 +256,9 @@ int getpeername(int, struct sockaddr *, int *);
|
||||
int getsockname(int, struct sockaddr *, int *);
|
||||
#endif /* _KERNEL_MODE */
|
||||
|
||||
#if __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* _SYS_SOCKET_H */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user