PORTNAME= plib
PORTVERSION= 1.8.5
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= x11-toolkits
MASTER_SITES= http://plib.sourceforge.net/dist/
--- src/net/netSocket.h.orig 2008-03-11 02:06:20.000000000 +0000
+++ src/net/netSocket.h 2010-03-09 10:27:29.331029501 +0000
@@ -41,6 +41,8 @@
#define NET_SOCKET_H
#include "ul.h"
+#include <sys/types.h>
+#include <sys/socket.h>
#include <errno.h>
/*
@@ -49,10 +51,11 @@
class netAddress
{
/* DANGER!!! This MUST match 'struct sockaddr_in' exactly! */
- short sin_family ;
- unsigned short sin_port ;
- unsigned int sin_addr ;
- char sin_zero [ 8 ] ;
+ int8_t sin_len;
+ sa_family_t sin_family;
+ in_port_t sin_port;
+ uint32_t sin_addr;
+ char sin_zero[8];
public:
netAddress () {}