Skip to content

Commit

Permalink
Use the correct socket family enum values in IO's ProtocolFamily
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiepi committed Jun 25, 2019
1 parent 17f6603 commit 39b04dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/IO.pm6
Expand Up @@ -9,11 +9,11 @@ enum SeekType (
:SeekFromEnd(2),
);
enum ProtocolFamily (
:PF_LOCAL(0),
:PF_UNIX(1),
:PF_INET(2),
:PF_INET6(3),
:PF_MAX(4),
:PF_INET(nqp::p6box_i(nqp::const::SOCKET_FAMILY_INET)),
:PF_INET6(nqp::p6box_i(nqp::const::SOCKET_FAMILY_INET6)),
:PF_LOCAL(nqp::p6box_i(nqp::const::SOCKET_FAMILY_UNIX)),
:PF_UNIX(nqp::p6box_i(nqp::const::SOCKET_FAMILY_UNIX)),
:PF_MAX(nqp::p6box_i(nqp::const::SOCKET_FAMILY_UNIX + 1)),
);
enum SocketType (
:SOCK_PACKET(0),
Expand Down

0 comments on commit 39b04dc

Please sign in to comment.