Subject: bug#6751: closed (Re: bug#6751: 24.0.50; lisp.h:2998: error: syntax error before ‘time_t’)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 29 Jul 2010 15:52:01 +0000

Your bug report

#6751: 24.0.50; lisp.h:2998: error: syntax error before ‘time_t’

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
6751: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6751
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#6751: 24.0.50; lisp.h:2998: error: syntax error before‘time_t’
From: Dan Nicolaescu <[email-masked]>
To: Peter Dyballa <[email-masked]>
Cc: [email-masked]
Date: Thu, 29 Jul 2010 11:52:06 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Peter Dyballa <[email-masked]> writes:

> Hello!
>
> This is the compiler's first of many outputs (scroll.c, xdisp.c,
> menu.c, ... fringe.c, terminfo.c):
>
> 	In file included from frame.c:25:
> 	lisp.h:2998: error: syntax error before ‘time_t’
>
> The problem seems to be that lisp.h does not include time.h which has:
>
> 	#ifndef	_TIME_T
> 	#define	_TIME_T
> 	typedef	__darwin_time_t		time_t;
> 	#endif
>
> __darwin_time_t is defined in /usr/include/ppc/_types.h as:
>
> 	typedef long __darwin_time_t;
>
> In frame.c much later /usr/include/sys/time.h is included via
> systime.h and the typedef above renewed.
>
> Mac OS X 10.5.8, PPC.

Thanks, this should be fixed now.

Subject: 24.0.50; lisp.h:2998: error: syntax error before ‘time_t’
From: Peter Dyballa <[email-masked]>
To: [email-masked]
Date: Thu, 29 Jul 2010 15:32:56 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello!

This is the compiler's first of many outputs (scroll.c, xdisp.c,  
menu.c, ... fringe.c, terminfo.c):

	In file included from frame.c:25:
	lisp.h:2998: error: syntax error before ‘time_t’

The problem seems to be that lisp.h does not include time.h which has:

	#ifndef	_TIME_T
	#define	_TIME_T
	typedef	__darwin_time_t		time_t;
	#endif

__darwin_time_t is defined in /usr/include/ppc/_types.h as:

	typedef long __darwin_time_t;

In frame.c much later /usr/include/sys/time.h is included via  
systime.h and the typedef above renewed.

Mac OS X 10.5.8, PPC.

--
Greetings

   Pete

Sometimes I think the surest sign that intelligent life exists  
elsewhere in the universe is that none of it has tried to contact us.
		– Bill Watterson, in his comic strip Calvin and Hobbes