gmime r1538 - in trunk: . gmime



Author: fejj
Date: Thu Apr  2 02:59:10 2009
New Revision: 1538
URL: http://svn.gnome.org/viewvc/gmime?rev=1538&view=rev

Log:
2009-04-01  Jeffrey Stedfast  <fejj novell com>

	* gmime/gmime-utils.c: #include <process.h> for getpid() and ws2tcpip.h
	for getaddrinfo() on Windows platforms.

Modified:
   trunk/ChangeLog
   trunk/gmime.vcproj
   trunk/gmime/gmime-utils.c

Modified: trunk/gmime.vcproj
==============================================================================
--- trunk/gmime.vcproj	(original)
+++ trunk/gmime.vcproj	Thu Apr  2 02:59:10 2009
@@ -39,7 +39,7 @@
 			/>
 			<Tool
 				Name="VCCLCompilerTool"
-				AdditionalOptions="/D &quot;ssize_t&quot;=&quot;gssize&quot; /D &quot;GMIME_MAJOR_VERSION&quot;=&quot;2&quot; /D &quot;GMIME_MINOR_VERSION&quot;=&quot;4&quot; /D &quot;GMIME_MICRO_VERSION&quot;=&quot;5&quot; /D &quot;ICONV_CONST&quot;=&quot;&quot; /D &quot;HAVE_TIMEZONE&quot;"
+				AdditionalOptions="/D &quot;ssize_t&quot;=&quot;gssize&quot; /D &quot;GMIME_MAJOR_VERSION&quot;=&quot;2&quot; /D &quot;GMIME_MINOR_VERSION&quot;=&quot;4&quot; /D &quot;GMIME_MICRO_VERSION&quot;=&quot;5&quot; /D &quot;ICONV_CONST&quot;=&quot;&quot; /D &quot;HAVE_GMTIME_S&quot; /D &quot;HAVE_WS2TCPIP_H&quot; /D &quot;HAVE_GETADDRINFO&quot;"
 				Optimization="0"
 				AdditionalIncludeDirectories="&quot;.&quot;; &quot;util&quot;"
 				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;GMIME_EXPORTS;"
@@ -48,7 +48,7 @@
 				RuntimeLibrary="3"
 				UsePrecompiledHeader="0"
 				WarningLevel="3"
-				Detect64BitPortabilityProblems="true"
+				Detect64BitPortabilityProblems="false"
 				DebugInformationFormat="4"
 			/>
 			<Tool
@@ -62,7 +62,7 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
 				LinkIncremental="2"
 				GenerateDebugInformation="true"
 				SubSystem="2"

Modified: trunk/gmime/gmime-utils.c
==============================================================================
--- trunk/gmime/gmime-utils.c	(original)
+++ trunk/gmime/gmime-utils.c	Thu Apr  2 02:59:10 2009
@@ -42,8 +42,11 @@
 #else
 #include <process.h>        /* Windows header for getpid() */
 #endif
+#ifdef HAVE_WS2TCPIP_H
+#include <ws2tcpip.h>       /* Windows header for getaddrinfo() */
+#endif
 #ifdef HAVE_NETDB_H
-#include <netdb.h>
+#include <netdb.h>          /* Unix header for getaddrinfo() */
 #endif
 #include <ctype.h>
 #include <errno.h>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]