Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fork() problem

Status
Not open for further replies.

xicmaek

Programmer
Dec 3, 2001
1
SE
Why do I get compile errors in a system included file? (/usr/include/sys/siginfo.h:74: syntax error before `*')

The source code is:
"
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

int main(int argc, char* argv[]) {
if (fork()) {
printf(&quot;Child\n&quot;);
printf(&quot;%d&quot;, getpid());
} else {
printf(&quot;Parent\n&quot;);
printf(&quot;%d&quot;,getpid());
}
}

&quot;
 
No, they are not.
The problem is that I get a compile error in a h-file that is not part of my code...
 
I think the only thing you could do is... take a look on file /usr/include/sys/siginfo.h, line 74.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top