curl-users
Re: make error
Date: Mon, 20 Mar 2000 09:47:29 +0100
Bjorn Reese schrieb am 19.03.2000:
>Daniel Stenberg wrote:
>>
>> On Sat, 18 Mar 2000, Michi 'Witty' wrote:
>>
>> > Here's the source of resource.h.
>>
>> > extern int getpriority(int, id_t); /*<---------*/
>> > extern int setpriority(int, id_t, int);
>>
>> It seems as if perhaps the typedef for the 2nd parameter to
>getpriority() is
>> the problem.
>>
>> You could probably try 'man getpriority' and see if the man page
>specifies
>> what (other) includes files to include. My man pages tell me to
>include
>> <sys/resource.h> (Solaris 2) and <sys/time.h> plus
><sys/resource.h> (Linux).
>> The latter two are both #included.
>
>The man page for AIX (4.3) does not mention this, but the UNIX98
>standard
>says "The id_t type is defined through typedef as described in
><sys/types.h>"
>in the description of <sys/resource.h>. See
>
> http://www.opengroup.org/onlinepubs/7908799/xsh/sysresource.h.html
>
>Btw, id_t is described as "Used as a general identifier; can be used
>to
>contain at least a pid_t, uid_t or a gid_t."
>
the only files in the /usr/include - tree that use id_t are:
./resource.h:124:extern int getpriority(int, id_t);
./resource.h:125:extern int setpriority(int, id_t, int);
./types.h:163:typedef ulong_t id_t; /* General ID
*/
./wait.h:158:extern int waitid(idtype_t, id_t, siginfo_t *, int);
in types.h: (only appearence of id_t)
#if _XOPEN_SOURCE_EXTENDED==1
typedef ulong_t id_t; /* General ID */
typedef unsigned int useconds_t; /* time in microseconds */
#endif /* XOPEN_SOURCE_EXTENDED */
whatfor is the _XOPEN_SOURCE_EXTENDED macro?
thanks
michael
Received on 2000-03-20