[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

help: uid_t structure !



Hi,

  I am trying to compile one file called xpriv.c which belongs to the
Radio Track install ! Unfortunally i get that:

------------------------------------------------
xpriv.c: In function `give_up_root`:
xpriv.c:30: `uid_t` undeclared (first use this function)
xpriv.c:30: (Each undeclared identifier is reported only once
xpriv.c:30: for each function it appears in.)
xpriv.c:30: parse error before `uid`
xpriv.c:33: `uid` undeclared (first use this function) 

-----------------------------------------------

 The code is:

---------------------------
#include <unistd.h>
#include <stdio.h>

int give_up_root(void) 
{
   /* get the real uid and give up root */
   uid_t uid;
   int err;

   uid=getuid();
   err=seteuid(uid);
   return (err);
}
-----------------------------

What is going wrong ?

 uid_t structure isn`t already defined ?


 Thanks.

 Best regards,
   Nuno Carvalho


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: