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
This commit is contained in:
Philippe Houdoin 2002-11-13 08:14:01 +00:00
parent eca926b1cf
commit dc6dfab4c0
2 changed files with 6 additions and 3 deletions

View File

@ -73,7 +73,9 @@
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include "sys/select.h"
#include <sys/select.h>
#define howmany(x, y) _howmany(x, y)
#define DEFDATALEN (64 - 8) /* default data length */
#define MAXIPLEN 60

View File

@ -217,12 +217,13 @@
#include <netinet/ip_icmp.h>
#include <netinet/ip_var.h>
#include <netinet/udp.h>
#include "sys/select.h"
#include <sys/select.h>
#define howmany(x, y) _howmany(x, y)
#include <arpa/inet.h>
#include <ctype.h>
//#include <err.h>
#include <errno.h>
#include <netdb.h>
#include <stdio.h>