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
eb1ff556
Commit
eb1ff556
authored
Feb 04, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ping: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f658d9d1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
Makefile.in
programs/ping/Makefile.in
+0
-1
ping_main.c
programs/ping/ping_main.c
+1
-1
No files found.
programs/ping/Makefile.in
View file @
eb1ff556
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
ping.exe
MODULE
=
ping.exe
IMPORTS
=
ws2_32 iphlpapi
IMPORTS
=
ws2_32 iphlpapi
...
...
programs/ping/ping_main.c
View file @
eb1ff556
...
@@ -184,7 +184,7 @@ int __cdecl main(int argc, char** argv)
...
@@ -184,7 +184,7 @@ int __cdecl main(int argc, char** argv)
{
{
reply
=
(
ICMP_ECHO_REPLY
*
)
reply_buffer
;
reply
=
(
ICMP_ECHO_REPLY
*
)
reply_buffer
;
if
(
reply
->
RoundTripTime
>=
1
)
if
(
reply
->
RoundTripTime
>=
1
)
sprintf
(
rtt
,
"=%d"
,
reply
->
RoundTripTime
);
sprintf
(
rtt
,
"=%
l
d"
,
reply
->
RoundTripTime
);
else
else
strcpy
(
rtt
,
"<1"
);
strcpy
(
rtt
,
"<1"
);
printf
(
"Reply from %s: bytes=%d time%sms TTL=%d
\n
"
,
ip
,
l
,
printf
(
"Reply from %s: bytes=%d time%sms TTL=%d
\n
"
,
ip
,
l
,
...
...
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