From dc6dfab4c070a26efe3123ee66a8f31fab662f47 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Wed, 13 Nov 2002 08:14:01 +0000 Subject: [PATCH] Hack howmany() macro to use _howmany() to build ping and traceroute. However, what's the official (POSIX?), if any, macro name for this? git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1913 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bin/ping/ping.c | 4 +++- src/apps/bin/traceroute/traceroute.c | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/apps/bin/ping/ping.c b/src/apps/bin/ping/ping.c index 698efd3d55..3a1362117a 100644 --- a/src/apps/bin/ping/ping.c +++ b/src/apps/bin/ping/ping.c @@ -73,7 +73,9 @@ #include #include #include -#include "sys/select.h" +#include + +#define howmany(x, y) _howmany(x, y) #define DEFDATALEN (64 - 8) /* default data length */ #define MAXIPLEN 60 diff --git a/src/apps/bin/traceroute/traceroute.c b/src/apps/bin/traceroute/traceroute.c index 97133c9a16..93776aea0c 100644 --- a/src/apps/bin/traceroute/traceroute.c +++ b/src/apps/bin/traceroute/traceroute.c @@ -217,12 +217,13 @@ #include #include #include -#include "sys/select.h" +#include + +#define howmany(x, y) _howmany(x, y) #include #include -//#include #include #include #include