All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
<sys/socket.h> has no socklen_t
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
<sys/socket.h> has no socklen_t - Jan. 10, '06, 7:40:56 AM
|
|
|
breiter
Posts: 338
Joined: Jun. 14, '04,
From: Washington, DC
Status: offline
|
I ran into a problem compiling code that expects <sys/socket.h> to make a socketlen_t type available.
In Interix, <sys/socket.h> does not typedef a socklen_t. Where the OpenGroup shows socklen_t being used as the type for msg_namelen in the msghder struct, Interix uses int. Is it safe to define a socklen_t type as int like this to make the port build?
#ifdef __INTERIX
typedef int socklen_t;
#endif
If so, perhaps it would be better to patch <sys/socket.h>?
< Message edited by breiter -- Jan. 10, '06, 7:42:01 AM >
|
|
|
RE: <sys/socket.h> has no socklen_t - Jan. 10, '06, 12:59:55 PM
|
|
|
Rodney
Posts: 3142
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
|
There's no problem adding this to your system.
BTW it's on my list to add it in the next phase of changes/updates I'm doing for MS.
So it'll be a while before anyone see it, but it is happening.
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|