1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/comms/aprsd/files/patch-src_servers.h
Diane Bruce 86b4c48051 - aprsd is a server daemon that provides Internet gateway and client
access to amateur radio APRS packet data.
2008-01-24 18:23:27 +00:00

35 lines
692 B
C++

--- src/servers.h.orig 2008-01-12 18:18:53.000000000 -0500
+++ src/servers.h 2008-01-12 18:36:15.000000000 -0500
@@ -28,6 +28,12 @@
#include <string>
#include <sstream>
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#include <sys/param.h>
+#endif
+#ifdef BSD
+#include <netinet/in.h>
+#endif
#include "aprsd.h"
#include "mutex.h"
@@ -135,11 +141,17 @@
//Stuff for trusted UDP source IPs
+#ifdef BSD
+struct sTrusted {
+ struct in_addr sin_addr; //ip address
+ struct in_addr sin_mask; //subnet mask
+};
+#else
struct sTrusted {
in_addr sin_addr; //ip address
in_addr sin_mask; //subnet mask
};
-
+#endif
struct sLogon{
char *user;