diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-12-10 16:24:13 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-12-10 16:24:13 +0000 |
commit | 5ea6279dca9679f429c1031ca52cb1f11b9731ce (patch) | |
tree | e3ae57f54c4101381b945ee1ea332112d45f6de9 /main | |
parent | 3f56f113018416a00676e0b8beb45bdeade351c7 (diff) |
Portability issue on OpenSolaris.
Also detect the required structure element, because OpenSolaris defines
SIOCGIFHWADDR, but without support for IP sockets.
(closes issue #18442)
Reported by: ranjtech
Patches:
20101209__issue18442.diff.txt uploaded by tilghman (license 14)
Tested by: ranjtech
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@298050 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/netsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/netsock.c b/main/netsock.c index e4cfb3bd3..02a143b64 100644 --- a/main/netsock.c +++ b/main/netsock.c @@ -234,7 +234,7 @@ char *ast_eid_to_str(char *s, int maxlen, struct ast_eid *eid) void ast_set_default_eid(struct ast_eid *eid) { -#if defined(SIOCGIFHWADDR) +#if defined(SIOCGIFHWADDR) && defined(HAVE_STRUCT_IFREQ_IFR_IFRU_IFRU_HWADDR) int s, x = 0; char eid_str[20]; struct ifreq ifr; |