svn commit: r366634 - head/contrib/nvi/common
Jessica Clarke
jrtc27 at freebsd.org
Mon Oct 12 13:55:27 UTC 2020
On 12 Oct 2020, at 11:42, Alex Richardson <arichardson at FreeBSD.org> wrote:
> --- head/contrib/nvi/common/common.h Mon Oct 12 10:42:19 2020 (r366633)
> +++ head/contrib/nvi/common/common.h Mon Oct 12 10:42:24 2020 (r366634)
> @@ -14,7 +14,7 @@
> #ifdef __linux__
> #include "/usr/include/db1/db.h" /* Only include db1. */
> #else
> -#include "/usr/include/db.h" /* Only include db1. */
> +#include <db.h> /* Only include db1. */
> #endif
Can this not be expressed more nicely as the following?
/* Only include db1 */
#if __has_include(<db1/db.h>)
#include <db1/db.h>
#else
#include <db.h>
#endif
Jess
More information about the svn-src-all
mailing list