commit: r289 - trunk/daemon

[email protected]
Newsgroups gmane.network.spread.cvs
Message-ID <[email protected]>
Author: jonathan
Date: 2006-02-08 03:46:41 -0500 (Wed, 08 Feb 2006)
New Revision: 289

Modified:
   trunk/daemon/Changelog
   trunk/daemon/arch.h
Log:
Fix for broken compile with Windows DLL. They need to use the
official system version of strerror and not our internal version.
So add HAVE_STRERROR to arch.h.


Modified: trunk/daemon/Changelog
===================================================================
--- trunk/daemon/Changelog	2006-02-08 08:20:18 UTC (rev 288)
+++ trunk/daemon/Changelog	2006-02-08 08:46:41 UTC (rev 289)
@@ -1,3 +1,9 @@
+Wed Feb  8 03:44:23 2006  Jonathan Stanton  <[email protected]>
+
+	* arch.h: Add HAVE_STRERROR for Windows builds. This avoids
+	a compile error with shared DLL libraries. Discovered and 
+	fixed by Jacob Green.
+
 Tue Feb 07 11:31:42 2006 Jonathan Stanton <[email protected]>
 
 	ifdef out debugging code to avoid compile warning.

Modified: trunk/daemon/arch.h
===================================================================
--- trunk/daemon/arch.h	2006-02-08 08:20:18 UTC (rev 288)
+++ trunk/daemon/arch.h	2006-02-08 08:46:41 UTC (rev 289)
@@ -124,6 +124,10 @@
 typedef         unsigned long   socklen_t;
 #define         BADCLOCK
 #define         HAVE_GOOD_VARGS
+/* Windows now has a strerror function and if we do not use it 
+ * compile errors occur with shared DLL libraries. 
+ */
+#define         HAVE_STRERROR
 /* This size is for packing several messages into one packet */
 #define         ARCH_SCATTER_SIZE       64
 #define         ERR_TIMEDOUT    EAGAIN
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.