diff --git a/ChangeLog b/ChangeLog index f28a4a3..48fdd8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2289,3 +2289,9 @@ Wed Aug 18 14:58:08 PDT 1999 Michael Jennings Also cleaned up the XIM code to fit with the rest of Eterm. ------------------------------------------------------------------------------- +Wed Aug 18 18:17:14 PDT 1999 Michael Jennings + + Apparently, FreeBSD has a timer_t already, so I renamed Eterm's. + Thanks to Carl Lewis for pointing this out. + +------------------------------------------------------------------------------- diff --git a/acconfig.h b/acconfig.h index 19c5077..64f76c8 100644 --- a/acconfig.h +++ b/acconfig.h @@ -311,6 +311,7 @@ #undef NO_XLOCALE #undef GREEK_SUPPORT #undef CONFIG_SEARCH_PATH +#undef AUTHORS /* Leave that blank line there!! Autoheader needs it. diff --git a/configure.in b/configure.in index f5a9c94..90e3811 100644 --- a/configure.in +++ b/configure.in @@ -8,6 +8,7 @@ DATE="`date '+%d %B %Y'`" AC_SUBST(DATE) AUTHORS="Michael Jennings (mej@eterm.org) and Tuomo Venäläinen (vendu@cc.hut.fi) " AC_SUBST(AUTHORS) +AC_DEFINE_UNQUOTED(AUTHORS, "$AUTHORS") dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure' if test ! -z "${CFLAGS}" -o ! -z "${CCOPTS}"; then diff --git a/src/options.c b/src/options.c index 99cbdd3..04850ff 100644 --- a/src/options.c +++ b/src/options.c @@ -479,7 +479,7 @@ usage(void) unsigned short i, col; printf("Eterm Enlightened Terminal Emulator for X Windows\n"); - printf("Copyright (c) 1997-1999, Tuomo Venalainen and Michael Jennings\n\n"); + printf("Copyright (c) 1997-1999, " AUTHORS "\n\n"); printf("Usage for " APL_NAME " " VERSION ":\n\n"); printf("%7s %17s %40s\n", "POSIX", "GNU", "Description"); printf("%8s %10s %41s\n", "=======", "===============================", diff --git a/src/timer.c b/src/timer.c index 716a7a1..e4eaa86 100644 --- a/src/timer.c +++ b/src/timer.c @@ -45,20 +45,20 @@ static const char cvs_ident[] = "$Id$"; #include "pixmap.h" #include "timer.h" -static timer_t *timers = NULL; +static etimer_t *timers = NULL; timerhdl_t timer_add(unsigned long msec, timer_handler_t handler, void *data) { - static timer_t *timer; + static etimer_t *timer; struct timeval tv; static struct timezone tz; if (!timers) { - timers = (timer_t *) MALLOC(sizeof(timer_t)); + timers = (etimer_t *) MALLOC(sizeof(etimer_t)); timer = timers; } else { - timer->next = (timer_t *) MALLOC(sizeof(timer_t)); + timer->next = (etimer_t *) MALLOC(sizeof(etimer_t)); timer = timer->next; } timer->msec = msec; @@ -75,8 +75,8 @@ timer_add(unsigned long msec, timer_handler_t handler, void *data) { unsigned char timer_del(timerhdl_t handle) { - register timer_t *current; - timer_t *temp; + register etimer_t *current; + etimer_t *temp; if (timers == handle) { timers = handle->next; @@ -113,7 +113,7 @@ timer_change_delay(timerhdl_t handle, unsigned long msec) { void timer_check(void) { - register timer_t *current; + register etimer_t *current; struct timeval tv; static struct timezone tz; diff --git a/src/timer.h b/src/timer.h index a19b4d9..bc3920f 100644 --- a/src/timer.h +++ b/src/timer.h @@ -39,8 +39,8 @@ /************ Structures ************/ typedef unsigned char (*timer_handler_t)(void *); -typedef struct timer_struct timer_t; -typedef timer_t *timerhdl_t; /* The timer handles are actually pointers to a timer_t struct, but clients shouldn't use them as such. */ +typedef struct timer_struct etimer_t; +typedef etimer_t *timerhdl_t; /* The timer handles are actually pointers to a etimer_t struct, but clients shouldn't use them as such. */ struct timer_struct { unsigned long msec; struct timeval time;