* [gentoo-commits] gentoo-x86 commit in media-radio/tucnak2/files: tucnak2-2.48-hamlib.diff
@ 2012-06-04 15:45 Thomas Beierlein (tomjbe)
0 siblings, 0 replies; only message in thread
From: Thomas Beierlein (tomjbe) @ 2012-06-04 15:45 UTC (permalink / raw
To: gentoo-commits
tomjbe 12/06/04 15:45:33
Added: tucnak2-2.48-hamlib.diff
Log:
Fix error with USE=-hamlib (bug #419593). Thanks Ago
(Portage version: 2.1.10.64/cvs/Linux x86_64)
Revision Changes Path
1.1 media-radio/tucnak2/files/tucnak2-2.48-hamlib.diff
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/tucnak2/files/tucnak2-2.48-hamlib.diff?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/tucnak2/files/tucnak2-2.48-hamlib.diff?rev=1.1&content-type=text/plain
Index: tucnak2-2.48-hamlib.diff
===================================================================
# Fix forgotten #ifdef if hamlib not available
--- src/rotar.c.orig 2012-03-13 14:35:34.000000000 +0100
+++ src/rotar.c 2012-06-04 17:26:54.000000000 +0200
@@ -20,12 +20,13 @@
gpointer rot_hamlib_main(gpointer xxx);
+#ifdef HAVE_HAMLIB
static int rot_print_model_list(const struct rot_caps *caps, void *data)
{
log_addf("%-6d %-14s %-20s %s\n", caps->rot_model, caps->mfg_name, caps->model_name, caps->version);
return 1; /* !=0, we want them all ! */
}
-
+#endif
struct rotar *init_rotar(struct config_rotar *crot, int rotchar){
struct rotar *rot;
@@ -117,13 +118,15 @@
}
void free_rotar(struct rotar *rot){
- if (rot->hl_thread){
+#ifdef HAVE_HAMLIB
+ if (rot->hl_thread){
rot->hl_thread_break = 1;
dbg("join hamlib rotar...\n");
g_thread_join(rot->hl_thread);
dbg("done\n");
rot->hl_thread=0;
}
+#endif
g_free(rot->desc);
g_free(rot->netid);
g_free(rot->rem_rotstr);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-04 15:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-04 15:45 [gentoo-commits] gentoo-x86 commit in media-radio/tucnak2/files: tucnak2-2.48-hamlib.diff Thomas Beierlein (tomjbe)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox