aboutsummaryrefslogtreecommitdiff
path: root/patches/0007-diff-Add-missing-includes.patch
blob: 643a6daf9da6b0bf42755fd85f2a1b0495b938cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From 7ce395bfbff36cf0020d0a425ff3053fcf2eaa3d Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Sat, 4 Jun 2016 14:48:20 -0700
Subject: [PATCH] diff: Add missing includes

---
 usr.bin/diff/diff.c    | 1 +
 usr.bin/diff/diffreg.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c
index 2b075f12c..80c7f842e 100644
--- a/usr.bin/diff/diff.c
+++ b/usr.bin/diff/diff.c
@@ -20,6 +20,7 @@
  * Materiel Command, USAF, under agreement number F39502-99-1-0512.
  */
 
+#include <sys/cdefs.h>
 #include <sys/stat.h>
 
 #include <ctype.h>
diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c
index 35d61c349..953018cf5 100644
--- a/usr.bin/diff/diffreg.c
+++ b/usr.bin/diff/diffreg.c
@@ -77,6 +77,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <time.h>
 #include <unistd.h>
 #include <limits.h>
 
-- 
2.12.2