FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 01-03-2011, 12:13 AM
Dave Reisner
 
Default add curl to alpm initialization and teardown routines

Signed-off-by: Dave Reisner <d@falconindy.com>
---
lib/libalpm/alpm.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 3f9cfff..44c513e 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -27,6 +27,9 @@
#ifdef HAVE_LIBFETCH
#include <fetch.h>
#endif
+#ifdef HAVE_LIBCURL
+#include <curl/curl.h>
+#endif

/* libalpm */
#include "alpm.h"
@@ -63,6 +66,10 @@ int SYMEXPORT alpm_initialize(void)
fetchConnectionCacheInit(5, 1);
#endif

+#ifdef HAVE_LIBCURL
+ curl_global_init(CURL_GLOBAL_NOTHING);
+#endif
+
return(0);
}

@@ -86,6 +93,10 @@ int SYMEXPORT alpm_release(void)
fetchConnectionCacheClose();
#endif

+#ifdef HAVE_LIBCURL
+ curl_global_cleanup();
+#endif
+
return(0);
}

--
1.7.3.4
 

Thread Tools




All times are GMT. The time now is 01:29 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org