Skip to content

Commit

Permalink
Fixed c_long->int issue in std.socket – the code was probably written…
Browse files Browse the repository at this point in the history
… back when D on x86_64 was a faint dream.

Actually, the timeval struct could be removed altogether as it isn't used anywhere in std.socket (I didn't realize that I wasn't using the C standard library one), but this would be still a breaking API change, so I refrained from it.
  • Loading branch information
dnadlinger committed Jun 15, 2011
1 parent 375e9d1 commit 364bcc8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions std/socket.d
Expand Up @@ -40,6 +40,7 @@ module std.socket;
import core.stdc.stdint, std.string, std.c.string, std.c.stdlib, std.conv,
std.traits;

import core.stdc.config;
import core.time : dur, Duration;
import std.algorithm : max;
import std.exception : assumeUnique, enforce;
Expand Down Expand Up @@ -947,8 +948,8 @@ enum SocketFlags: int
extern(C) struct timeval
{
// D interface
int seconds; /// Number of seconds.
int microseconds; /// Number of additional microseconds.
c_long seconds; /// Number of seconds.
c_long microseconds; /// Number of additional microseconds.

// C interface
deprecated
Expand Down

0 comments on commit 364bcc8

Please sign in to comment.