[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/libbase network.cpp
From: |
Dossy Shiobara |
Subject: |
[Gnash-commit] gnash/libbase network.cpp |
Date: |
Sat, 22 Mar 2008 02:31:30 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Dossy Shiobara <dossy> 08/03/22 02:31:30
Modified files:
libbase : network.cpp
Log message:
Win32 doesn't have the sa_family_t type, nor the UNIX_PATH_MAX
defined, or the sockaddr_un struct.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/network.cpp?cvsroot=gnash&r1=1.38&r2=1.39
Patches:
Index: network.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/network.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- network.cpp 20 Mar 2008 18:14:55 -0000 1.38
+++ network.cpp 22 Mar 2008 02:31:30 -0000 1.39
@@ -301,6 +301,20 @@
return true;
}
+#ifdef _WIN32
+/* from sys/socket.h */
+typedef unsigned short sa_family_t;
+
+/* from sys/un.h */
+#define UNIX_PATH_MAX 108
+
+struct sockaddr_un {
+ sa_family_t sun_family; /* AF_UNIX */
+ char sun_path[UNIX_PATH_MAX]; /* pathname */
+};
+
+#endif /* _WIN32 */
+
// Connect to a named pipe
bool
Network::connectSocket(const string &sockname)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/libbase network.cpp,
Dossy Shiobara <=