Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id BAA18599 for postgres-redist; Tue, 29 Nov 1994 01:05:30 -0800
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199411290905.BAA18599@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from smtp.tele.fi (smtp.tele.fi [192.89.123.29]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id BAA18589 for <postgres@nobozo.CS.Berkeley.EDU>; Tue, 29 Nov 1994 01:05:22 -0800
Received: from hki.wsoy.fi by smtp.tele.fi (5.0/SMI-SVR4/tele 1.0)
	id AA01876; Tue, 29 Nov 94 11:00:46 +0200
Received: by hki.wsoy.fi (AIX 3.2/UCB 5.64/4.03)
          id AA60439; Tue, 29 Nov 1994 11:04:44 +0200
Date: Tue, 29 Nov 1994 11:04:44 +0200
From: pkat@hki.wsoy.fi (Pekka Kataja)
Message-Id: <9411290904.AA60439@hki.wsoy.fi>
To: pturner@amb4.ccalmr.ogi.edu
Cc: postgres@postgres.Berkeley.EDU
In-Reply-To: <9411281855.AA27373@amb4.ccalmr.ogi.edu> (pturner@amb4.ccalmr.ogi.edu)
Subject: Re: Problems building bmake on AIX 3.2.5
content-length: 1130
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Tue, 29 Nov 94 01:05:30 -0800
Resent-XMts: smtp


> 
> I'm trying to build pg on an IBM RS6K 320h with xlc (cc) and 
> AIX 3.2.5, but I don't seem to have the right stuff to build 
> bmake. I'm getting:
> 
> I checked the header files and it seems to want _POSIX_SOURCE or something.
> But throwing _POSIX_SOURCE at it causes other problems. Any clue as to what
> can be done to fix this?
> 

AIX handle union wait and it's macros own ways.

Look at /usr/include/sys/m_wait.h. It's _BSD style union wait.
Look also /usr/include/sys/wait.h

I resolved this 

/* compat.c" The cursor is at line 286 of 627  */

#ifdef _AIX
            } else if (WIFEXITED(reason)) {
#else
            } else if (WIFEXITED(reason.w_status)) {
#endif

I have compat.c and job.c modified , but there aren't many place where WIF*
macros exist.

-----------------------------------------------------------------------------
Pekka Kataja 	  WSOY ( Werner Soderstrom Limited )
email: pkat@hki.wsoy.fi * fax: +358-0-6168510 * tel: +358-0-6168468
P.O.BOX 222 00121 Helsinki Finland
navigare necesse est, vivere non est necesse
-----------------------------------------------------------------------------


==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
              URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
