add missing extern C
authorMichael Andres <ma@suse.de>
Wed, 30 Jan 2008 16:11:44 +0000 (16:11 +0000)
committerMichael Andres <ma@suse.de>
Wed, 30 Jan 2008 16:11:44 +0000 (16:11 +0000)
zypp/cache/SolvStore.cc

index 518e67f..15b3c7a 100644 (file)
 #include "zypp/cache/CacheException.h"
 #include "zypp/cache/CacheAttributes.h"
 
-#include "satsolver/repo.h"
+extern "C"
+{
+#include <satsolver/repo.h>
+}
 
 using namespace std;
 using namespace zypp;
@@ -56,7 +59,7 @@ struct SolvStore::Impl
   , _cachedir(solvdir)
   {
     _pool = pool_create();
-    _repo = repo_create(_pool, alias.c_str() ); 
+    _repo = ::repo_create(_pool, alias.c_str() ); 
     _repodata = repo_add_repodata(_repo);
    
     //_attr_resobject_summary = str2id(_pool, "summary");