summaryrefslogtreecommitdiff
path: root/net-misc/netkit-fingerd/files/netkit-fingerd-0.17-includes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/netkit-fingerd/files/netkit-fingerd-0.17-includes.patch')
-rw-r--r--net-misc/netkit-fingerd/files/netkit-fingerd-0.17-includes.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/net-misc/netkit-fingerd/files/netkit-fingerd-0.17-includes.patch b/net-misc/netkit-fingerd/files/netkit-fingerd-0.17-includes.patch
new file mode 100644
index 000000000000..4318db053ac2
--- /dev/null
+++ b/net-misc/netkit-fingerd/files/netkit-fingerd-0.17-includes.patch
@@ -0,0 +1,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>