Go Back   Angband Forums > Angband > Development

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old March 22, 2018, 17:29   #1
Hellband maintainer
konijn_'s Avatar
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 44
Posts: 367
Donated: $120
konijn_ is on a distinguished road
Question On kill and Raspbian


Hellband will compile on Raspbian, but it throws a warning on

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, but still had the exact same warning
  (void)kill((pid_t)0, (int)SIGSTOP);
I checked the man page, and I do have the proper include.
So then I went to read signals.h and found the following
/* Send signal SIG to process number PID.  If PID is zero,
   send SIG to all processes in the current process's process group.
   If PID is < -1, send SIG to all processes in process group - PID.  */
#ifdef __USE_POSIX
extern int kill (__pid_t __pid, int __sig) __THROW;
#endif /* Use POSIX.  */
There is no reference to POSIX anywhere in hellband header files, so what do I do? Just add the __USE_POSIX flag to the makefile for Raspbian? Am I missing something?

I dont run in to this at all when compiling for Ternux.
* Are you ready for something else ? Hellband 0.8.8 is out! *

Last edited by konijn_; March 22, 2018 at 17:49.
konijn_ is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to kill Morgoth? vulsuck Sil 11 August 22, 2017 23:05
How many heals necessary to kill M and S? Pete Mack Vanilla 20 October 24, 2016 22:01
How do I kill M? the Invisible Stalker Vanilla 8 September 12, 2009 14:39
How *do* you kill Saruman? gglibertine Vanilla 22 August 1, 2008 06:41
How to kill Morgoth? momo125 Vanilla 4 November 25, 2007 10:37

All times are GMT +1. The time now is 11:57.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.