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:
@@ -8,6 +8,10 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
#if __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
typedef uint32 socklen_t;
|
typedef uint32 socklen_t;
|
||||||
|
|
||||||
/* These are the address/protocol families we'll be using... */
|
/* 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 *);
|
int getsockname(int, struct sockaddr *, int *);
|
||||||
#endif /* _KERNEL_MODE */
|
#endif /* _KERNEL_MODE */
|
||||||
|
|
||||||
|
#if __cplusplus
|
||||||
|
}
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#endif /* _SYS_SOCKET_H */
|
#endif /* _SYS_SOCKET_H */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user