RPM Community Forums

Mailing List Message of <rpm-devel>

Re: RPM_OS_QNX in snapshot 20080126

From: Jeff Johnson <n3npq@mac.com>
Date: Sun 27 Jan 2008 - 15:34:18 CET
Message-Id: <ED16EE05-DBF6-419A-A063-D90FF2A960E5@mac.com>

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
Received on Sun Jan 27 15:34:28 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.