File gpsbabel-1.3.5-link-clash.patch of Package gpsbabel
Prevent 'link' symbol clashes:
lmx.c:34: error: 'link' redeclared as different kind of symbol
/usr/include/unistd.h:756: error: previous declaration of 'link' was here
--- lmx.c
+++ lmx.c
@@ -31,7 +31,7 @@
static gbfile *ofd;
static waypoint *wpt_tmp;
-char *link, *linkt;
+char *linkurl, *linkt;
#define MYNAME "lmx"
@@ -205,13 +205,13 @@
static void
lmx_lm_mlink_s(const char *args, const char **unused)
{
- link = linkt = NULL;
+ linkurl = linkt = NULL;
}
static void
lmx_lm_link(const char *args, const char **unused)
{
- link = xstrdup(args);
+ linkurl = xstrdup(args);
}
static void
@@ -223,7 +223,7 @@
static void
lmx_lm_mlink_e(const char *args, const char **unused)
{
- waypt_add_url(wpt_tmp, link, linkt);
+ waypt_add_url(wpt_tmp, linkurl, linkt);
}