[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getloadavg.c fails to compile on QNX 6.4.1
From: |
mkraai |
Subject: |
Re: getloadavg.c fails to compile on QNX 6.4.1 |
Date: |
Wed, 29 Jul 2009 08:38:51 -0700 |
How about this?
Jim Meyering <address@hidden>
07/28/2009 01:48 PM
|
To
| address@hidden
|
cc
| address@hidden
|
Subject
| Re: getloadavg.c fails to compile on
QNX 6.4.1 |
|
address@hidden wrote:
> getloadavg.c fails to build on QNX 6.4.1. /usr/include/nlist.h
exists, so
> configure defines HAVE_NLIST_H. This makes getloadavg.c define
> NLIST_STRUCT. Since NLIST_STRUCT is defined, getloadavg.c assumes
that
> n_name is a pointer, but /usr/include/nlist.h makes it a 12-character
> array. This causes the compiler to generate an error when it
tries to
> assign to the member.
>
> Would it be better to check for __QNX__ in getloadavg.c and handle
this
> case or to create a configure test for this?
It would be better to add a configure test, in case some day __QNX__
changes some day.
The server made the following annotations
---------------------------------------------------------------------------------
This message contains information that may be privileged or confidential and is the property of Beckman Coulter, Inc. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------------------
0001-Check-whether-n_name-is-a-pointer.patch
Description: Binary data