![]() |
#1 |
Hellband maintainer
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 43
Posts: 367
Donated: $120
![]() |
![]()
Greetings,
Hellband will compile on Raspbian, but it throws a warning on Code:
files.c:4633:8: warning: implicit declaration of function �kill’ [-Wimplicit-function-declaration] (void)kill(0, SIGSTOP); Code:
(void)kill((pid_t)0, (int)SIGSTOP); So then I went to read signals.h and found the following Code:
/* 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. */ 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 18:49. |
![]() |
![]() |
![]() |
#2 |
Knight
Join Date: Jan 2017
Posts: 862
![]() |
I can't answer this directly, but I can attempt to provide some oblique answers.
Hellband as a Cthangband fork has some opinionated alterations to system-level stuff, I believe cthangband was designed to be run primarily on windows machines. If you get a reference copy of unaltered angband (probably the version cthang forked from, I'd guess a 2.8 or 2.9) all the system level stuff will be exhaustively commented on and there will be a __USE_POSIX flag somewhere I'm pretty sure. I know I've seen them in some variants. Possibly related, possibly unrelated, occasionally on live the hellband process don't respond to the kill signal and I have to reptyr them. This happened a few times one day but I'm not sure what or why is the problem, I think it was in-game crashes on that day. |
![]() |
![]() |
![]() |
#3 | |
Swordsman
Join Date: May 2016
Posts: 330
![]() |
Quote:
Anyway, you probably just need to define _GNU_SOURCE before including Unix headers. See features.h and the man page for feature_test_macros. |
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to kill Morgoth? | vulsuck | Sil | 11 | August 23, 2017 00:05 |
How many heals necessary to kill M and S? | Pete Mack | Vanilla | 20 | October 24, 2016 23:01 |
How do I kill M? | the Invisible Stalker | Vanilla | 8 | September 12, 2009 15:39 |
How *do* you kill Saruman? | gglibertine | Vanilla | 22 | August 1, 2008 07:41 |
How to kill Morgoth? | momo125 | Vanilla | 4 | November 25, 2007 11:37 |