Fix FTBFS due to redefine the 'log' symbol in tdmlib.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/172/head
Slávek Banko 3 years ago
parent d8c7fa1e66
commit 1a97a720e5
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -55,7 +55,7 @@ protected:
virtual void contextMenuEvent( TQContextMenuEvent * ) {} virtual void contextMenuEvent( TQContextMenuEvent * ) {}
}; };
static FILE* log; static FILE *logFile;
static void kg_debug(const char* fmt, ...) static void kg_debug(const char* fmt, ...)
{ {
va_list lst; va_list lst;
@ -63,8 +63,8 @@ static void kg_debug(const char* fmt, ...)
#ifdef PAM_GREETER_DEBUG #ifdef PAM_GREETER_DEBUG
#if 0 #if 0
vfprintf(log, fmt, lst); vfprintf(logFile, fmt, lst);
fflush(log); fflush(logFile);
#else #else
char buf[6000]; char buf[6000];
sprintf(buf, "*** %s\n", fmt); sprintf(buf, "*** %s\n", fmt);
@ -691,9 +691,11 @@ static bool init( const TQString &,
static void done( void ) static void done( void )
{ {
TDEGlobal::locale()->removeCatalogue( "kgreet_pam" ); TDEGlobal::locale()->removeCatalogue( "kgreet_pam" );
if (log && log != stderr) if (logFile && (logFile != stderr))
fclose(log); {
log = 0; fclose(logFile);
}
logFile = 0;
} }
static KGreeterPlugin * static KGreeterPlugin *

Loading…
Cancel
Save