Fresco/Prague/include/Prague/IPC sockbuf.hh,1.13,1.14

Neil John Pilgrim <[email protected]>
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/Fresco/Prague/include/Prague/IPC
In directory purcel:/tmp/cvs-serv25690

Modified Files:
	sockbuf.hh 
Log Message:
OSX/Darwin patch from bughunter


Index: sockbuf.hh
===================================================================
RCS file: /cvs/fresco/Fresco/Prague/include/Prague/IPC/sockbuf.hh,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- sockbuf.hh	29 Nov 2002 20:46:56 -0000	1.13
+++ sockbuf.hh	24 Feb 2003 22:50:48 -0000	1.14
@@ -33,9 +33,12 @@
 namespace Prague
 {
 
-#if defined(__linux__) || defined(__FreeBSD__)  // XXX: ugly!!
+// XXX This #if is ugly! 
+// NOTE: 'macintosh' is untested, but inferred from Darwin/OSX headers
+#if defined(__linux__) || defined(__FreeBSD__)  || \
+    defined(macintosh) || (defined(__APPLE__) && defined(__MACH__))
 #  define MSG_MAXIOVLEN	 16
-#endif // __linux__ or __FreeBSD__
+#endif // __linux__ or __FreeBSD__ or macintosh or __APPLE__/__MACH__
 
 //. socket exception classes
 class sockerr
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.