ports/devel/libtai/files/patch-leadsecs_read.c
Rodrigo Osorio 5ffc7be915 devel/libtai: moved manpages to share/man
Fix do-install target and plist to install manpages in share/man
Reorder and format Makefile to make linter happy
2024-02-26 18:54:38 +01:00

11 lines
332 B
C

--- leapsecs_read.c.orig Fri Jun 16 22:44:31 2000 UTC
+++ leapsecs_read.c
@@ -18,7 +18,7 @@
int i;
struct tai u;
- fd = open("/etc/leapsecs.dat",O_RDONLY | O_NDELAY);
+ fd = open("%%PREFIX%%/etc/leapsecs.dat",O_RDONLY | O_NDELAY);
if (fd == -1) {
if (errno != ENOENT) return -1;
if (leapsecs) free(leapsecs);