[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libredwg] scandir() in test/unit-testing/common.c
From: |
Iain Hibbert |
Subject: |
[libredwg] scandir() in test/unit-testing/common.c |
Date: |
Mon, 9 Nov 2020 20:41:41 +0000 (GMT) |
User-agent: |
Alpine 2.21 (NEB 202 2017-01-01) |
Hello
On NetBSD, the scandir() declaration is inside an #ifdef _NETBSD_SOURCE
block, see:
https://nxr.netbsd.org/xref/src/include/dirent.h#111
and this means that the test/unit-testing/common.c file fails to build
because of lack of prototype. I see that at the top of this file there are
a few definitions and I think that these are for this purpose, the
declaration is hidden behind __BSD_VISIBLE on FreeBSD for instance. Adding
a
#define _NETBSD_SOURCE
at the head of this file allows this to compile fine and the tests all
pass.
Iain Hibbert
- [libredwg] scandir() in test/unit-testing/common.c,
Iain Hibbert <=