summaryrefslogtreecommitdiff
path: root/net-misc/netkit-fingerd/files/netkit-fingerd-0.17-includes.patch
blob: 4318db053ac2f94bd551b67e0acb83ff0b4afa27 (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
https://bugs.gentoo.org/897822

Add missing fcntl.h.
Change sys/time.h to time.h.

--- a/finger/lprint.c
+++ b/finger/lprint.c
@@ -42,13 +42,14 @@
 
 #include <stdio.h>
 #include <ctype.h>
+#include <fcntl.h>
 #include <paths.h>
 #include <string.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/file.h>
 #include <sys/stat.h>
-#include <sys/time.h>
+#include <time.h>
 #include "finger.h"
 
 static void lprint(PERSON *pn);
--- a/finger/sprint.c
+++ b/finger/sprint.c
@@ -40,7 +40,7 @@
 #endif /* not lint */
 
 #include <sys/types.h>
-#include <sys/time.h>
+#include <time.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>