Opened 7 years ago
Last modified 7 years ago
Reported by: atkac Assigned to: pmatilai
Priority: major Milestone:
Component: rpm Version: RPM Development
Keywords: Cc:
Compilation fails on GNU/Hurd due missing SA_SIGINFO. GNU/Hurd has only "old style" signal API. Proposed patch fixes the problem.
I'm not sure if you want include signal.h directly in rpmsq.h. If yes then it seems SA_SIGINFO conditional building has to be handled through configure & config.h.
rpm-sigaction.patch (1.4 kB) - added by atkac on 10/31/08 17:39:30.
Seems reasonable to me. Applied, thanks for the patch.
Hm, after inspection previous patch was incomplete. Compilation emits those errors: rpmsq.c:159: warning: initialization from incompatible pointer type rpmsq.c:161: warning: initialization from incompatible pointer type rpmsq.c:163: warning: initialization from incompatible pointer type rpmsq.c:165: warning: initialization from incompatible pointer type rpmsq.c:167: warning: initialization from incompatible pointer type rpmsq.c:169: warning: initialization from incompatible pointer type rpmsq.c: In function 'rpmsqEnable': rpmsq.c:276: warning: pointer type mismatch in conditional expression
Problem is in rpmsqAction function. Prototype/definition has to be conditionalized as well:
#ifdef SA_SIGINFO void rpmsqAction(int signum, void * info, void * context); #else void rpmsqAction(int signum); #endif
Duh, of course :) Added now...