Skip Menu |

This queue is for tickets about the Socket CPAN distribution.

Report information
The Basics
Id: 127089
Status: patched
Priority: 0/
Queue: Socket

People
Owner: Nobody in particular
Requestors: felipe [...] felipegasper.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Missing constant: AF_LOCAL
Date: Mon, 10 Sep 2018 17:26:22 -0400
To: bug-Socket [...] rt.cpan.org
From: Felipe Gasper <felipe [...] felipegasper.com>
Linux (and other OSes?) consider AF_LOCAL as a synonym for AF_UNIX. This makes more sense in light of the fact that there’s nothing inherently “unix”-y about local sockets. Would it be possible for this alias to be added to Socket.pm? Thank you! -FG
Show quoted text
> Would it be possible for this alias to be added to Socket.pm?
Seems simple enough. Patch attached. -- Paul Evans
Subject: rt127089.patch
=== modified file 'Makefile.PL' --- Makefile.PL 2018-01-11 22:54:51 +0000 +++ Makefile.PL 2018-09-17 15:07:21 +0000 @@ -165,9 +165,9 @@ qw( AF_802 AF_AAL AF_APPLETALK AF_CCITT AF_CHAOS AF_CTF AF_DATAKIT AF_DECnet AF_DLI AF_ECMA AF_GOSIP AF_HYLINK AF_IMPLINK AF_INET AF_INET6 - AF_ISO AF_KEY AF_LAST AF_LAT AF_LINK AF_MAX AF_NBS AF_NIT AF_NS AF_OSI - AF_OSINET AF_PUP AF_ROUTE AF_SNA AF_UNIX AF_UNSPEC AF_USER AF_WAN - AF_X25 + AF_ISO AF_KEY AF_LAST AF_LAT AF_LINK AF_LOCAL AF_MAX AF_NBS AF_NIT + AF_NS AF_OSI AF_OSINET AF_PUP AF_ROUTE AF_SNA AF_UNIX AF_UNSPEC AF_USER + AF_WAN AF_X25 AI_ADDRCONFIG AI_ALL AI_CANONIDN AI_CANONNAME AI_IDN AI_IDN_ALLOW_UNASSIGNED AI_IDN_USE_STD3_ASCII_RULES AI_NUMERICHOST @@ -203,9 +203,9 @@ PF_802 PF_AAL PF_APPLETALK PF_CCITT PF_CHAOS PF_CTF PF_DATAKIT PF_DECnet PF_DLI PF_ECMA PF_GOSIP PF_HYLINK PF_IMPLINK PF_INET PF_INET6 - PF_ISO PF_KEY PF_LAST PF_LAT PF_LINK PF_MAX PF_NBS PF_NIT PF_NS PF_OSI - PF_OSINET PF_PUP PF_ROUTE PF_SNA PF_UNIX PF_UNSPEC PF_USER PF_WAN - PF_X25 + PF_ISO PF_KEY PF_LAST PF_LAT PF_LINK PF_LOCAL PF_MAX PF_NBS PF_NIT + PF_NS PF_OSI PF_OSINET PF_PUP PF_ROUTE PF_SNA PF_UNIX PF_UNSPEC PF_USER + PF_WAN PF_X25 SCM_CONNECT SCM_CREDENTIALS SCM_CREDS SCM_TIMESTAMP