Merge pull request #107 from illumino/develop

Portability Fixes discovered on Solaris 10, but should be generally applicable
pull/43/merge
David Schweikert 8 years ago committed by GitHub
commit 9811dffc07

@ -365,6 +365,8 @@ int main( int argc, char **argv )
int tos = 0;
HOST_ENTRY *cursor;
prog = argv[0];
s = open_ping_socket(ping_data_size);
if((uid = getuid())) {
@ -373,7 +375,6 @@ int main( int argc, char **argv )
perror("cannot setuid");
}
prog = argv[0];
ident = getpid() & 0xFFFF;
verbose_flag = 1;
backoff_flag = 1;

@ -36,6 +36,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/in_systm.h>
#include <netinet/ip_icmp.h>
#include <netdb.h>
#include <stdio.h>

Loading…
Cancel
Save