gmime r1520 - in trunk: . gmime



Author: fejj
Date: Tue Mar 31 01:06:49 2009
New Revision: 1520
URL: http://svn.gnome.org/viewvc/gmime?rev=1520&view=rev

Log:
2009-03-30  Jeffrey Stedfast  <fejj novell com>

	* gmime/gmime-part.c: Removed unused includes.

	* gmime/gmime-utils.c: Only #include <sys/utsname.h> if we have
	utsname.domainname. Helps build process on Windows.



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

Modified: trunk/gmime/gmime-part.c
==============================================================================
--- trunk/gmime/gmime-part.c	(original)
+++ trunk/gmime/gmime-part.c	Tue Mar 31 01:06:49 2009
@@ -25,11 +25,7 @@
 
 #include <stdio.h>
 #include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
 #include <string.h>
-#include <ctype.h>
 
 #include "gmime-part.h"
 #include "gmime-utils.h"

Modified: trunk/gmime/gmime-utils.c
==============================================================================
--- trunk/gmime/gmime-utils.c	(original)
+++ trunk/gmime/gmime-utils.c	Tue Mar 31 01:06:49 2009
@@ -33,7 +33,9 @@
 #else
 #define MAXHOSTNAMELEN 64
 #endif
+#ifdef HAVE_UTSNAME_DOMAINNAME
 #include <sys/utsname.h>
+#endif
 #include <sys/types.h>
 #include <unistd.h>
 #ifdef HAVE_NETDB_H



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