apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)" <madhusudan_mathiha...@hp.com>
Subject RE: [PATCH] Regarding semun definition in proc_mutex.h
Date Thu, 27 Jun 2002 18:02:11 GMT
Yep. we compile with the "+DD64" option for ansi-c.

-Madhu

-----Original Message-----
From: Cliff Woolley [mailto:jwoolley@virginia.edu]
Sent: Thursday, June 27, 2002 10:49 AM
To: Jeff Trawick
Cc: MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1); 'dev@apr.apache.org'
Subject: Re: [PATCH] Regarding semun definition in proc_mutex.h


On 27 Jun 2002, Jeff Trawick wrote:

> So I guess sizeof(long) is 8 bytes on 64-bit HP-UX?  sizeof(long) is
> still 4 on 64-bit AIX.

----------------------------
$ uname -a
HP-UX nova126 B.11.00 U 9000/785 2010844465 unlimited-user license
$ cat test.c
#include <stdio.h>
int main()
{
    printf("%d\n",sizeof(long));
}
$ ./test
4
----------------------------
$ uname -a
HP-UX nova189 B.11.20 U ia64 2252765325 unlimited-user license
$ cat test.c
#include <stdio.h>
int main()
{
    printf("%d\n",sizeof(long));
}
$ ./test
4
----------------------------

So, nope.  Or maybe you have to compile in 64-bit mode?  How does one do
that with HP-UX's cc?

--Cliff

Mime
View raw message