ports/net/wmnetmon/files/patch-pinger.h
John Marino 8f3687f167 net/wmnetmon: Expand patches fix malloc.h-less DF
While here, regenerate all the patches to put them in unified format.
Wow, that old diff format is unreadable.
2015-11-13 00:04:37 +00:00

22 lines
445 B
C

--- pinger.h.orig 1999-07-23 14:08:26 UTC
+++ pinger.h
@@ -2,6 +2,7 @@
#define __PINGER_H__
+#include <sys/types.h>
#include <netinet/in.h>
#include "list.h"
#include "config.h"
@@ -47,9 +48,11 @@
#define UDP_DPORT dest
#endif
+#if ! (defined __FreeBSD__ || defined __DragonFly__)
#if ! (defined(__GLIBC__) && (__GLIBC__ >= 2))
#define inet_ntoa(x) inet_ntoa(*((struct in_addr *)&(x)))
#endif
+#endif
#define TIMEOUT_SIZE 55