hi
i have a redhat 7.2 linux
i tried to compile a simple program ..
#include <stdio.h>
#include "sched.h"
main()
{
struct task_struct *p;
int id=getpid();
int x;
p=(struct task_struct *) find_task_by_pid(id);
x=(int)(p->pid);
printf("pid=%d\n",x);
}
i tried to compile above by "gcc"
i got error
in main : 9 : dereferencing pointer to incomplete type
can anyone help me?
regards
swetank