niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » SGI/IRIX
compile time distinction between IRIX 5 and 6?
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Herve Boulouis
*nix forums beginner


Joined: 09 Jun 2005
Posts: 10

PostPosted: Wed Nov 30, 2005 5:42 pm    Post subject: Re: compile time distinction between IRIX 5 and 6? Reply with quote

On 2005-11-30, Georg Schwarz <georg.schwarz@freenet.de> wrote:
Quote:
Are there some compiler defines available to distinguish between IRIX 5
and IRIX 6 during compile time?

I'm suprised to see that there are still people using such an old OS.

Quote:
Or maybe once can directly read out the OS version number?

You can always check for the os version with uname in you configure script
or equivalent and then add a define to your compile command line. Considering
all the changes that happened between IRIX 5.3 and IRIX 6.5 I think that's
your best bet.

--
Herve Boulouis - Nerim
Back to top
Georg Schwarz
*nix forums beginner


Joined: 20 Feb 2005
Posts: 13

PostPosted: Wed Nov 30, 2005 4:17 pm    Post subject: compile time distinction between IRIX 5 and 6? Reply with quote

Are there some compiler defines available to distinguish between IRIX 5
and IRIX 6 during compile time?
Something like:

#ifdef IRIX6
....
#else
....
#endif

Or maybe once can directly read out the OS version number?

--
Georg Schwarz http://home.pages.de/~schwarz/
georg.schwarz@freenet.de +49 178 8545053
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Tue Jan 06, 2009 9:52 am | All times are GMT
navigation Forum index » *nix » SGI/IRIX
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Need help getting Sony DAT tape drive to work on Irix 6.5 trebor SGI/IRIX 1 Sun Apr 13, 2008 3:19 am
No new posts Running php file everyday on scheduled time sachin PHP 1 Fri Jul 21, 2006 12:49 pm
No new posts How to show the last time Solaris 8 machine was patched Arizona Solaris 2 Thu Jul 20, 2006 1:42 pm
No new posts Help getting this to compile Allan M. Bruce C 3 Thu Jul 20, 2006 10:31 am
No new posts anvil status reports not on time? Carlos Carvalho Postfix 5 Thu Jul 20, 2006 12:04 am

Myspace Layouts | Myspace Proxy | Buy WoW Gold | Banruptcy | Upvc Doors
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1692s ][ Queries: 20 (0.1016s) ][ GZIP on - Debug on ]