svn commit: r365941 - head/contrib/nvi/common
Alex Richardson
arichardson at FreeBSD.org
Mon Sep 21 09:03:45 UTC 2020
Author: arichardson
Date: Mon Sep 21 09:03:42 2020
New Revision: 365941
URL: https://svnweb.freebsd.org/changeset/base/365941
Log:
Fix vi build on Linux/macOS
This absolute include causes a build failure on Linux for me:
.../cheri/freebsd/contrib/nvi/cl/../common/common.h:10:10: fatal error: '/usr/include/db.h' file not found
This change patches the file to use #include <db.h> instead until a
solution has been found upstream. See also https://github.com/lichray/nvi2/issues/69
Reviewed By: bapt
Differential Revision: https://reviews.freebsd.org/D26480
Modified:
head/contrib/nvi/common/common.h
Modified: head/contrib/nvi/common/common.h
==============================================================================
--- head/contrib/nvi/common/common.h Mon Sep 21 09:03:37 2020 (r365940)
+++ head/contrib/nvi/common/common.h Mon Sep 21 09:03:42 2020 (r365941)
@@ -7,7 +7,7 @@
* See the LICENSE file for redistribution information.
*/
-#include "/usr/include/db.h" /* Only include db1. */
+#include <db.h> /* Only include db1. */
#include <regex.h> /* May refer to the bundled regex. */
/*
More information about the svn-src-all
mailing list