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