[commit] r2271 - in tags/tmsnc/tmsnc-0.3.2: . src
dslinux_sonny_jim at dslinux.in-berlin.de
dslinux_sonny_jim at dslinux.in-berlin.de
Sat Jul 19 20:11:47 CEST 2008
Author: dslinux_sonny_jim
Date: Sat Jul 19 20:11:47 2008
New Revision: 2271
Log:
Fixing tmsnc for DSLinus
Modified:
tags/tmsnc/tmsnc-0.3.2/configure
tags/tmsnc/tmsnc-0.3.2/src/Makefile.in
tags/tmsnc/tmsnc-0.3.2/src/common.h
tags/tmsnc/tmsnc-0.3.2/src/event.c
tags/tmsnc/tmsnc-0.3.2/src/misc.c
Modified: tags/tmsnc/tmsnc-0.3.2/configure
==============================================================================
--- tags/tmsnc/tmsnc-0.3.2/configure (original)
+++ tags/tmsnc/tmsnc-0.3.2/configure Sat Jul 19 20:11:47 2008
@@ -5488,7 +5488,7 @@
echo "$as_me: error: You don't seem to have the curses headers installed" >&2;}
{ (exit 1); exit 1; }; }
fi
-CURSES_LIBS="$CURSES_LIBS -lpanel -lform"
+CURSES_LIBS="-lpanel -lform $CURSES_LIBS"
if test "X$prefix" = "XNONE"; then
Modified: tags/tmsnc/tmsnc-0.3.2/src/Makefile.in
==============================================================================
--- tags/tmsnc/tmsnc-0.3.2/src/Makefile.in (original)
+++ tags/tmsnc/tmsnc-0.3.2/src/Makefile.in Sat Jul 19 20:11:47 2008
@@ -172,7 +172,7 @@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
tmsnc_VERSION = @tmsnc_VERSION@
-LDADD = @SSLLIB@ @CURSES_LIBS@ @LIBICONV@ @LTLIBICONV@ @TFLIB@
+LDADD = @SSLLIB@ @LIBICONV@ @LTLIBICONV@ @TFLIB@ @CURSES_LIBS@
INCLUDES = @SSLINC@ @CURSES_INCLUDEDIR@
AM_CFLAGS = -Wall
tmsnc_SOURCES = misc.c main.c conf.c login.c sig.c menu.c ui.c list.c charset.c core_misc.c core_net.c core_ssl.c core_p2p.c dialog.c filters.c event.c debug.c
Modified: tags/tmsnc/tmsnc-0.3.2/src/common.h
==============================================================================
--- tags/tmsnc/tmsnc-0.3.2/src/common.h (original)
+++ tags/tmsnc/tmsnc-0.3.2/src/common.h Sat Jul 19 20:11:47 2008
@@ -15,11 +15,11 @@
*/
#include "config.h"
-#if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
-#include <ncurses.h>
-#else
+//#if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
+//#include <ncurses.h>
+///#else
#include <curses.h>
-#endif
+//#endif
#include <form.h>
#include <panel.h>
#include <pthread.h>
Modified: tags/tmsnc/tmsnc-0.3.2/src/event.c
==============================================================================
--- tags/tmsnc/tmsnc-0.3.2/src/event.c (original)
+++ tags/tmsnc/tmsnc-0.3.2/src/event.c Sat Jul 19 20:11:47 2008
@@ -509,7 +509,7 @@
case cmd_manual:
def_prog_mode();
endwin();
- if ((r = fork()) == 0) {
+ if ((r = vfork()) == 0) {
r = execlp("man", "man", "tmsnc", NULL);
reset_prog_mode();
refresh();
Modified: tags/tmsnc/tmsnc-0.3.2/src/misc.c
==============================================================================
--- tags/tmsnc/tmsnc-0.3.2/src/misc.c (original)
+++ tags/tmsnc/tmsnc-0.3.2/src/misc.c Sat Jul 19 20:11:47 2008
@@ -50,7 +50,7 @@
else if (sound == SOUND_ERROR)
snprintf(buffer, sizeof(buffer), "%s/.tmsnc/sounds/%s",
cf->homedir, cf->sound.error);
- if ((c = fork()) == 0) {
+ if ((c = vfork()) == 0) {
/*
* redirect stdout and stderr to /dev/null
*/
More information about the dslinux-commit
mailing list