RPM Community Forums

Mailing List Message of <rpm-devel>

Re: RPM_OS_QNX in snapshot 20080126

From: Peter Kalbus <peter.kalbus@gmx.de>
Date: Sun 27 Jan 2008 - 15:48:24 CET
Message-Id: <77A3BB24-833D-48BE-AE9E-1BC25D443E30@gmx.de>
why not using the compiler flags __QNXNTO__ or __QNX__ as in other  
places?

Am 27.01.2008 um 15:34 schrieb Jeff Johnson:

>
> On Jan 27, 2008, at 7:25 AM, Peter Kalbus wrote:
>
>> i just try to get last night snapshot compiled on qnx.
>>
>> everything (except the db 4.6.21 parts) seems to be included - cool.
>>
>
> Good.
>
>> only problem, i currently have is, that in rpmio/fts.c the changes  
>> are #if-defed with RPM_OS_QNX.
>>
>> seems to be, that this is not defined anywhere, so far.
>>
>> what's the way, to get this arranged?
>>
>> something for system.h:
>>
>>  #if defined(__QNXNTO__)
>>  #  define RPM_OS_QNX    1
>>  #endif
>>
>
> That will "work", but tghe right place is to arrange
> a test in configure.ac.
>
> This is the final usage
> case
>    CPPFLAGS="$CPPFLAGS -DRPM_OS_${RPM_OS_NAME}=${RPM_OS_VERS}"
> to set RPM_OS_QNX=... through CFLAGS.
>
> 73 de Jeff
>
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> Developer Communication List                        rpm-devel@rpm5.org
Received on Sun Jan 27 15:48:25 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.