bug-rcs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint: Fix undefined signal definition.


From: Collin Funk
Subject: [PATCH] maint: Fix undefined signal definition.
Date: Wed, 25 Sep 2024 19:13:13 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Paul,

Another minor patch. When this is in configure:

checking that `mmap' is sane... yes
checking signal received if referencing nonexistent part of mmapped file... 
SIGBUS

The MMAP_SIGNAL macro gets defined to SIGBUS. This causes a compilation
error since signal.h needs to be included.

In file included from base.h:24,
                 from b-fro.c:24:
b-fro.c: In function ‘fro_open’:
../lib/config.h:1318:21: error: ‘SIGBUS’ undeclared (first use in this function)
 1318 | #define MMAP_SIGNAL SIGBUS
      |                     ^~~~~~
b-fro.c:85:8: note: in expansion of macro ‘MMAP_SIGNAL’
   85 |     ? (MMAP_SIGNAL && status->st_size
      |        ^~~~~~~~~~~
../lib/config.h:1318:21: note: each undeclared identifier is reported only once 
for each function it appears in
 1318 | #define MMAP_SIGNAL SIGBUS
      |                     ^~~~~~
b-fro.c:85:8: note: in expansion of macro ‘MMAP_SIGNAL’
   85 |     ? (MMAP_SIGNAL && status->st_size
      |        ^~~~~~~~~~~
make[2]: *** [Makefile:2112: b-fro.o] Error 1

Collin

Attachment: 0001-maint-Fix-undefined-signal-definition.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]