LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cpu_t in Linux (https://www.linuxquestions.org/questions/linux-newbie-8/cpu_t-in-linux-620524/)

adarshkmr 02-12-2008 05:21 AM

cpu_t in Linux
 
Hi

can any one help me reg the following issue.
I am porting one appln from Solaris to Linux.
When I compiled one directory I got an error such as
"/home/users/bldadm2/pvcs/ib/mcs/src/mcs/base/affinity.h", line 89: Error: cpu_t is not defined.

In Solaris, definition for cpu_t is availbale in the /usr/include/sys/cpuvar.h

I couldnt find out the definition for cpu_t in Linux plarform.

Please advise...
Thnx in Advance...

gr.manju 02-12-2008 10:30 PM

Quote:

Originally Posted by adarshkmr (Post 3054371)
Hi

can any one help me reg the following issue.
I am porting one appln from Solaris to Linux.
When I compiled one directory I got an error such as
"/home/users/bldadm2/pvcs/ib/mcs/src/mcs/base/affinity.h", line 89: Error: cpu_t is not defined.

In Solaris, definition for cpu_t is availbale in the /usr/include/sys/cpuvar.h

I couldnt find out the definition for cpu_t in Linux plarform.

Please advise...
Thnx in Advance...



If its not defined in linux just copy the definition from the solaris
and write it in your header file and include that header file in your all the files where ever you are using cpu_t

this is the easiest way to come over that error

but its better if you make a common header file for all the missing variables definition in linux.


All times are GMT -5. The time now is 02:43 PM.