On 12 Oct 2020, at 11:42, Alex Richardson <arichard...@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

_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to