conftest correctly detects NetBSD and OpenBSD for TRIPLET_OS

This commit is contained in:
Christian Jullien 2021-01-17 08:49:37 +01:00
parent f5f8326531
commit 53f7d8baf4

View File

@ -194,6 +194,10 @@ int main(int argc, char **argv)
# define TRIPLET_OS "linux"
#elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
# define TRIPLET_OS "kfreebsd"
#elif defined(__NetBSD__)
# define TRIPLET_OS "netbsd"
#elif defined(__OpenBSD__)
# define TRIPLET_OS "openbsd"
#elif defined(_WIN32)
# define TRIPLET_OS "win32"
#elif defined(__APPLE__)