diff options
author | Mike Gilbert <floppym@gentoo.org> | 2023-02-26 13:49:59 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2023-02-26 13:54:06 -0500 |
commit | 48c2c6f914dcd83c12e13becd6afabbb6acbffa6 (patch) | |
tree | 767df329646742d292eecbd6b1160179efebd41c /net-misc/netkit-fingerd/files/netkit-fingerd-0.17-includes.patch | |
parent | dev-tcltk/snack: update EAPI 7 -> 8 (diff) | |
download | gentoo-48c2c6f914dcd83c12e13becd6afabbb6acbffa6.tar.gz gentoo-48c2c6f914dcd83c12e13becd6afabbb6acbffa6.tar.bz2 gentoo-48c2c6f914dcd83c12e13becd6afabbb6acbffa6.zip |
net-misc/netkit-fingerd: fix implicit declaration of 'open'
Closes: https://bugs.gentoo.org/897822
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
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.patch | 34 |
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> |