1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-28 21:29:28 +00:00
freebsd-ports/sysutils/clockspeed/files/patch-leapsecs_read.c
Mario Sergio Fujikawa Ferreira 69feeee703 1) Install leapsecs.dat (leapseconds support)
2) Add PKGMESSAGE with additional FreeBSD specific installation
   information
3) Install sample startup script
4) Bump PORTREVISION due to (1)

PR:		27617
Submitted by:	Vivek Khera <khera@kciLink.com>
2001-05-25 14:58:06 +00:00

12 lines
364 B
C

--- leapsecs_read.c.orig Thu May 24 20:07:04 2001
+++ leapsecs_read.c Thu May 24 20:12:33 2001
@@ -18,7 +18,7 @@
int i;
struct tai u;
- fd = open("/etc/leapsecs.dat",O_RDONLY | O_NDELAY);
+ fd = open("%%PREFIX%%/etc/clockspeed/leapsecs.dat",O_RDONLY | O_NDELAY);
if (fd == -1) {
if (errno != ENOENT) return -1;
if (leapsecs) free(leapsecs);