fix build on FreeBSD 16
"Dan Langille" <[email protected]> Wed, 01 Apr 2026 16:00:30 -0400
| Newsgroups | gmane.comp.sysutils.backup.bacula.devel |
|---|---|
| Message-ID | <[email protected]> |
--4d61ece673864b09b1f67f5526c1b89c
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hello,
The attached patch fixes the build for check_bacula on FreeBSD 16 - conio.c should be including this but isn't. Respected sources say "looks like a change caused by FreeBSD 16 upgrading to ncurses 6.6, so it will probably affect other OSes at some point too."
The build error I get:
conio.c:150:23: error: variable has incomplete type 'struct termios'
150 | static struct termios old_term_params;
| ^
conio.c:150:15: note: forward declaration of 'termios'
150 | static struct termios old_term_params;
| ^
conio.c:939:19: error: variable has incomplete type 'struct termios'
939 | struct termios t;
I'm running this patch under FreeBSD 15 without error.
re https://sourceforge.net/p/bacula/mailman/message/59288082/ (which incorrectly says FreeBSD 15, not 16)
--
Dan Langille
[email protected]
--4d61ece673864b09b1f67f5526c1b89c
Content-Disposition: attachment;
filename*0="0002-include-termios.h-to-fix-build-on-FreeBSD-16.patch"
Content-Type: application/octet-stream;
name="=?UTF-8?Q?0002-include-termios.h-to-fix-build-on-FreeBSD-16.patch?="
Content-Transfer-Encoding: base64
RnJvbSA0NjY0MTY2YmM1MmYzZDhiMjhiMzY3OTg4ZDJkOTcwZjQyMDkxNDRjIE1vbiBTZXAg
MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBEYW4gTGFuZ2lsbGUgPGRhbkBsYW5naWxsZS5vcmc+
CkRhdGU6IFdlZCwgMSBBcHIgMjAyNiAxOTo0OTozOSArMDAwMApTdWJqZWN0OiBbUEFUQ0gg
Mi8yXSBpbmNsdWRlIHRlcm1pb3MuaCB0byBmaXggYnVpbGQgb24gRnJlZUJTRCAxNgoKLS0t
CiBiYWN1bGEvc3JjL2NvbnNvbGUvY29uaW8uYyB8IDEgKwogMSBmaWxlIGNoYW5nZWQsIDEg
aW5zZXJ0aW9uKCspCgpkaWZmIC0tZ2l0IGEvYmFjdWxhL3NyYy9jb25zb2xlL2NvbmlvLmMg
Yi9iYWN1bGEvc3JjL2NvbnNvbGUvY29uaW8uYwppbmRleCAyYmVhODg3ZTcuLjdhYzYxZDY0
MiAxMDA3NTUKLS0tIGEvYmFjdWxhL3NyYy9jb25zb2xlL2NvbmlvLmMKKysrIGIvYmFjdWxh
L3NyYy9jb25zb2xlL2NvbmlvLmMKQEAgLTU2LDYgKzU2LDcgQEAKIAogI2luY2x1ZGUgPGN1
cnNlcy5oPgogI2luY2x1ZGUgPHRlcm0uaD4KKyNpbmNsdWRlIDx0ZXJtaW9zLmg+CiAKICNp
ZmRlZiBIQVZFX1NVTl9PUwogI2lmbmRlZiBfVEVSTV9ICi0tIAoyLjUzLjAKCg==
--4d61ece673864b09b1f67f5526c1b89c
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--4d61ece673864b09b1f67f5526c1b89c
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel
--4d61ece673864b09b1f67f5526c1b89c--