Article View: gnu.utils.bug
Article #25AIX prototype problem with time-1.4 (with fix)
From: Cliff Krumvieda
Date: Thu, 29 Oct 1992 06:01
Date: Thu, 29 Oct 1992 06:01
46 lines
1759 bytes
1759 bytes
Howdy:
I had a little trouble compiling time-1.4 under AIX 3.2 on an RS/6000.
The file time.c requires that the type "union wait" be defined, which
is done in /usr/include/sys/m_wait.h:
======================================================================
union wait
{
...
};
======================================================================
Unfortunately, time.c includes /usr/include/sys/wait.h, which
*conditionally* includes m_wait.h:
======================================================================
#ifdef _BSD
#include <sys/m_wait.h>
#endif /* _BSD */
======================================================================
I fixed the problem with this simple patch:
======================================================================
% diff -c time.c-dist time.c
*** time.c-dist Wed Oct 28 14:21:05 1992
--- time.c Thu Oct 29 09:18:09 1992
***************
*** 42,47 ****
--- 42,51 ----
#include "timeval.h"
#endif
+ #ifdef _AIX
+ #define _BSD
+ #endif
+
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#include <sys/wait.h>
======================================================================
Hope this helps.
--Cliff
Technical Details
Message-ID:
<9210291601.AA09906@ask.cs.cornell.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!snorkelwacker.mit.edu!tamsun.tamu.edu!cs.utexas.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!cs.cornell.edu!cliffShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!snorkelwacker.mit.edu!tamsun.tamu.edu!cs.utexas.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!cs.cornell.edu!cliff From: cliff@cs.cornell.edu (Cliff Krumvieda) Subject: AIX prototype problem with time-1.4 (with fix) Message-ID: <9210291601.AA09906@ask.cs.cornell.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Thu, 29 Oct 1992 06:01:23 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 47