View Single Post
Old April 1, 2018, 18:47   #3
t4nk
Swordsman
 
Join Date: May 2016
Posts: 330
t4nk is on a distinguished road
Quote:
Originally Posted by konijn_ View Post
Greetings,

Code:
files.c:4633:8: warning: implicit declaration of function �kill’ [-Wimplicit-function-declaration]
  (void)kill(0, SIGSTOP);
I thought to solve this with typecasting the parameters since forcing zero into a structure seems arcane
It just complains about missing prototype for kill(). pid_t is not a structure, it's an int.
Anyway, you probably just need to define _GNU_SOURCE before including Unix headers. See features.h and the man page for feature_test_macros.
t4nk is offline   Reply With Quote