2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

Do not unconditionally define unix on OpenBSD. (#85)

This resolves a warning that popped up when we switched to Clang as
Clang defines unix in addition to __unix__ unlike GCC.
This commit is contained in:
Brad Smith
2021-09-07 08:11:52 -04:00
committed by GitHub
parent bea6753d66
commit dcffeb632e

View File

@@ -328,7 +328,9 @@
#ifdef __OpenBSD__
#define OSMINOR "OS=OPENBSD"
#define OS_OPENBSD
#define unix
#ifndef unix
#define unix
#endif
#endif
#if defined (__FreeBSD_kernel__) && !defined(__FreeBSD__)
#define OSMINOR "OS=KFREEBSD"