diff --git a/plugins/addressbook/evolution/eds.c b/plugins/addressbook/evolution/eds.c index a36efcbcdbaeb99ef9ae2b3ebcd21e82dee76039..508fc238ef9caf3d1f5f98dfc4459d710ab05765 100644 --- a/plugins/addressbook/evolution/eds.c +++ b/plugins/addressbook/evolution/eds.c @@ -36,13 +36,17 @@ * as that of the covered work. */ +#include "config.h" + #include <glib.h> #include <string.h> #include <pango/pango.h> #include "eds.h" +#if EDS_CHECK_VERSION(3,5,3) +#include <libedataserver/libedataserver.h> +#else #include <libedataserver/e-source.h> - -#include "config.h" +#endif /** * Structure used to store search callback and data diff --git a/plugins/addressbook/evolution/eds.h b/plugins/addressbook/evolution/eds.h index 5bbf71e1af469ff4049cb08d9a6f1c72a681d584..a905dd20f91877240979d020e8eab8f4f17f2787 100644 --- a/plugins/addressbook/evolution/eds.h +++ b/plugins/addressbook/evolution/eds.h @@ -40,7 +40,14 @@ #include <glib.h> #include <gdk-pixbuf/gdk-pixbuf.h> + +#include <libedataserver/eds-version.h> + +#if EDS_CHECK_VERSION(3,5,3) +#include <libebook/libebook.h> +#else #include <libebook/e-book.h> +#endif #include "addressbook.h"