How can I detect the HP-UX version at compile time? Added: 05/02/02


The below macro sequence allows you to figure out the HP-UX major
version number:

#include <sys/privgrp.h>
#if defined(PRIV_PSET)
#define _hpux_11i
#elif defined(PRIV_SPUCTL)
#define __hpux_11x
#elif defined(PRIV_SERIALIZE)
#define __hpux_10x
#elif defined(PRIV_SETRUGID)
#define __hpux_9x
#endif



UNIXguide.net
Suggest a Site