From f638fbf8d6c5c3dada648edf974a410c3ca7ace5 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 19 Oct 2009 13:06:55 -0700 Subject: [PATCH] date.c: Change headers/defines t owork within notmuch. We can't rely on any gmime-internal headers, (and fortunately we don't need to). We also aren't burdened with any autconf machinery so don't reference any of that. --- date.c | 53 ++++++++--------------------------------------------- 1 file changed, 8 insertions(+), 45 deletions(-) diff --git a/date.c b/date.c index c6cbd813..0f217e44 100644 --- a/date.c +++ b/date.c @@ -23,54 +23,17 @@ * some glib-isms. */ -#ifdef HAVE_CONFIG_H -#include +#include "notmuch-private.h" + +#include + +#ifndef FALSE +#define FALSE 0 #endif -#define _GNU_SOURCE - -#include - -#include -#include -#include -#ifdef HAVE_SYS_PARAM_H -#include /* for MAXHOSTNAMELEN */ -#else -#define MAXHOSTNAMELEN 64 +#ifndef TRUE +#define TRUE 1 #endif -#ifdef HAVE_UTSNAME_DOMAINNAME -#include /* for uname() */ -#endif -#include -#ifdef HAVE_UNISTD_H -#include /* Unix header for getpid() */ -#endif -#ifdef G_OS_WIN32 -#include -#include -#include -#define getpid() _getpid() -#endif -#ifdef HAVE_NETDB_H -#include -#endif -#include -#include - -#include "gmime-utils.h" -#include "gmime-table-private.h" -#include "gmime-parse-utils.h" -#include "gmime-part.h" -#include "gmime-charset.h" -#include "gmime-iconv.h" -#include "gmime-iconv-utils.h" - -#ifdef ENABLE_WARNINGS -#define w(x) x -#else -#define w(x) -#endif /* ENABLE_WARNINGS */ #define d(x)