summaryrefslogtreecommitdiff
path: root/net/wmnetmon/files/patch-pinger.h
blob: ee4abbc5de5ccf4f3f47cb92662caaaac349c5a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
*** pinger.h.orig	Fri Jul 23 17:08:26 1999
--- pinger.h	Sun Apr  1 15:30:20 2001
***************
*** 2,7 ****
--- 2,8 ----
  #define __PINGER_H__
  
  
+ #include <sys/types.h>
  #include <netinet/in.h>
  #include "list.h"
  #include "config.h"
***************
*** 47,54 ****
--- 48,57 ----
  #define UDP_DPORT dest
  #endif
  
+ #ifndef __FreeBSD__
  #if ! (defined(__GLIBC__) && (__GLIBC__ >= 2))
  #define inet_ntoa(x) inet_ntoa(*((struct in_addr *)&(x)))
+ #endif
  #endif
  
  #define TIMEOUT_SIZE 55