diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-07-10 03:05:13 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-07-10 03:05:13 +0800 |
commit | 2bd47d3cda52acc0beb688ffb4a8202412de5c09 (patch) | |
tree | 66b1a9f93e8b5bfdeb8c9350bda05f98d3e7eeca /camel/camel-mime-utils.c | |
parent | 16ce509ec02a99acf7324c4e157cf1cf781a8a67 (diff) | |
download | gsoc2013-evolution-2bd47d3cda52acc0beb688ffb4a8202412de5c09.tar.gz gsoc2013-evolution-2bd47d3cda52acc0beb688ffb4a8202412de5c09.tar.zst gsoc2013-evolution-2bd47d3cda52acc0beb688ffb4a8202412de5c09.zip |
Get rid of the #ifdef ENABLE_THREADS since we no longer plan to
2003-07-09 Jeffrey Stedfast <fejj@ximian.com>
* camel-block-file.c: Get rid of the #ifdef ENABLE_THREADS since
we no longer plan to support/maintain this.
* camel.c: Same.
* camel-certdb.c: Here too.
* camel-charset-map.c: And here.
* camel-cipher-context.c: "
* camel-data-wrapper.c: "
* camel-digest-folder.c: "
* camel-exception.c: "
* camel-folder.c: "
* camel-folder-summary.c: "
* camel-lock-client.c: "
* camel-mime-utils.c: "
* camel-object.c: "
* camel-operation.c: "
* camel-partition-table.c: "
* camel-sasl-popb4smtp.c: "
* camel-service.c: "
* camel-session.c: "
* camel-store.c: "
* camel-store-summary.c: "
* camel-text-index.c: "
* camel-transport.c: "
* camel-vee-folder.c: "
* camel-tcp-stream-openssl.c: Removed pthread.h, it isn't needed.
svn path=/trunk/; revision=21777
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 2b71ec3866..ff2c0bb5fd 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -1,6 +1,6 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* - * Copyright (C) 2000 Ximian Inc. + * Copyright (C) 2000-2003 Ximian Inc. * * Authors: Michael Zucchi <notzed@ximian.com> * Jeffrey Stedfast <fejj@ximian.com> @@ -27,24 +27,23 @@ #endif #include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/param.h> /* for MAXHOSTNAMELEN */ -#include <fcntl.h> #include <stdlib.h> #include <string.h> +#include <sys/types.h> +#include <sys/param.h> /* for MAXHOSTNAMELEN */ +#include <sys/stat.h> +#include <pthread.h> #include <unistd.h> +#include <regex.h> +#include <fcntl.h> +#include <errno.h> +#include <ctype.h> +#include <time.h> #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 1024 #endif -#include <time.h> - -#include <ctype.h> -#include <errno.h> -#include <regex.h> - #include <glib.h> #include <gal/util/e-iconv.h> #include <e-util/e-time-utils.h> @@ -53,10 +52,6 @@ #include "camel-charset-map.h" #include "camel-service.h" /* for camel_gethostbyname() */ -#ifdef ENABLE_THREADS -#include <pthread.h> -#endif - #ifndef CLEAN_DATE #include "broken-date-parser.h" #endif @@ -3780,14 +3775,9 @@ header_raw_clear(struct _header_raw **list) char * header_msgid_generate (void) { -#ifdef ENABLE_THREADS static pthread_mutex_t count_lock = PTHREAD_MUTEX_INITIALIZER; #define COUNT_LOCK() pthread_mutex_lock (&count_lock) #define COUNT_UNLOCK() pthread_mutex_unlock (&count_lock) -#else -#define COUNT_LOCK() -#define COUNT_UNLOCK() -#endif /* ENABLE_THREADS */ char host[MAXHOSTNAMELEN]; struct hostent *h = NULL; static int count = 0; |