Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
00c74e94
Commit
00c74e94
authored
Jul 09, 2003
by
Robert Lunnon
Committed by
Alexandre Julliard
Jul 09, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some compile problems under Solaris.
parent
e8b26306
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ifenum.c
dlls/iphlpapi/ifenum.c
+5
-2
No files found.
dlls/iphlpapi/ifenum.c
View file @
00c74e94
...
...
@@ -630,6 +630,7 @@ DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
*
type
=
MIB_IF_TYPE_LOOPBACK
;
memset
(
addr
,
0
,
*
len
);
*
len
=
0
;
ret
=
NOERROR
;
}
else
{
struct
arpreq
arp
;
...
...
@@ -639,7 +640,7 @@ DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
arp
.
arp_pa
.
sa_family
=
AF_INET
;
saddr
=
(
struct
sockaddr_in
*
)
&
arp
;
/* proto addr is first member */
saddr
->
sin_family
=
AF_INET
;
saddr
->
sin_addr
.
s_addr
=
getInterfaceAddrByName
(
name
);
saddr
->
sin_addr
.
s_addr
=
getInterface
IP
AddrByName
(
name
);
if
((
ioctl
(
fd
,
SIOCGARP
,
&
arp
)))
ret
=
ERROR_INVALID_DATA
;
else
{
...
...
@@ -661,9 +662,11 @@ DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
}
}
}
close
(
fd
);
}
else
ret
=
ERROR_NO_MORE_FILES
;
}
return
ret
;
}
#elif defined (HAVE_SYS_SYSCTL_H) && defined (HAVE_NET_IF_DL_H)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment