summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/diff/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cvs/diff/diff.c')
-rw-r--r--contrib/cvs/diff/diff.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/cvs/diff/diff.c b/contrib/cvs/diff/diff.c
index ebd78ae..0b115f2 100644
--- a/contrib/cvs/diff/diff.c
+++ b/contrib/cvs/diff/diff.c
@@ -22,7 +22,12 @@ GNU General Public License for more details.
#include "diff.h"
#include <signal.h>
#include "getopt.h"
-#include "fnmatch.h"
+
+#ifdef HAVE_FNMATCH
+# include <fnmatch.h> /* This is supposed to be available on Posix systems */
+#else /* HAVE_FNMATCH */
+# include "fnmatch.h" /* Our substitute */
+#endif /* HAVE_FNMATCH */
#ifndef DEFAULT_WIDTH
#define DEFAULT_WIDTH 130
OpenPOWER on IntegriCloud