Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Cliff Krumvieda
Thu, 29 Oct 1992 06:01
AIX prototype problem with time-1.4 (with fix)
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads