🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98888

x11term.c includes <time.h> even when USG_SYS_TIME has been defined

#98888
From: J.T. Conklin
Date: Sun, 27 Jan 1991 04:10
37 lines
1847 bytes
FILE:	emacs-18.57/src/x11term.c

BUG:	Includes <time.h> on USG systems, even if USG_SYS_TIME is set.
	This causes the compilation of the source module to fail when
	we try to declare variables with type struct timval.

FIX:	Use the same preprocessor conditional used in process.c, as it
	gets things right.

PATCH:

*** OLD/x11term.c	Sat Jan 26 18:30:01 1991
--- x11term.c	Sat Jan 26 18:31:34 1991
***************
*** 94,100 ****
  /* _h_BSDTYPES is checked because on ISC unix, socket.h includes
     both time.h and sys/time.h, and the latter file is protected
     from repeated inclusion.  */
! #if defined(USG) && !defined(_h_BSDTYPES)
  #include <time.h>
  #else /* _h_BSDTYPES or not USG */
  #include <sys/time.h>
--- 94,100 ----
  /* _h_BSDTYPES is checked because on ISC unix, socket.h includes
     both time.h and sys/time.h, and the latter file is protected
     from repeated inclusion.  */
! #if defined(USG) && !defined(AIX) && !defined(_h_BSDTYPES) && !defined(USG_SYS_TIME)
  #include <time.h>
  #else /* _h_BSDTYPES or not USG */
  #include <sys/time.h>

-- 
J.T. Conklin	jtc@wimsey.bc.ca, ...!{uunet,ubc-cs}!van-bc!jtc


-- 
J.T. Conklin	jtc@wimsey.bc.ca, ...!{uunet,ubc-cs}!van-bc!jtc
Technical Details
Message-ID: <m0j03ij-0000qmC@wimsey.bc.ca>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!WIMSEY.BC.CA!jtc

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,ec9121fc92e30530,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-01-26 20:10:25 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!WIMSEY.BC.CA!jtc
From: jtc@WIMSEY.BC.CA (J.T. Conklin)
Newsgroups: gnu.emacs.bug
Subject: x11term.c includes <time.h> even when USG_SYS_TIME has been defined
Message-ID: <m0j03ij-0000qmC@wimsey.bc.ca>
Date: 27 Jan 91 04:10:25 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 37
Approved: bug-gnu-emacs@prep.ai.mit.edu