Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ EXTRA_DIST = mrss.pc mrss.pc.in doxy.conf doxy.conf.in

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = mrss.pc

ACLOCAL_AMFLAGS=-I m4
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ AC_INIT([libmrss], [libmrss_version])
AC_CONFIG_SRCDIR([src/mrss_generic.c])
AC_CONFIG_MACRO_DIRS([m4])

AM_INIT_AUTOMAKE
AM_INIT_AUTOMAKE([foreign])
AM_SANITY_CHECK
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
Expand Down
4 changes: 2 additions & 2 deletions mrss.pc.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
prefix=@prefix@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: libmrss
Expand Down
11 changes: 10 additions & 1 deletion src/mrss_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,16 @@ static void __mrss_parser_atom_entry(nxml_t *doc, nxml_data_t *cur,
/* link href -> link */
else if (!item->link && !strcmp(cur->value, "link") &&
(c = nxmle_find_attribute(cur, "href", NULL)))
item->link = c;
{
char *t;

/* alternate link is either rel="alternate" or a link tag
* without a rel attribute
*/
t = nxmle_find_attribute (cur, "rel", NULL);
if ((t && !strcmp(t, "alternate")) || !t)
item->link = c;
}

/* content -> description */
else if (!item->description && !strcmp(cur->value, "content"))
Expand Down