aboutsummaryrefslogtreecommitdiffstats
path: root/x11-clocks/xalarm/files
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>1997-02-17 17:30:16 +0800
committertg <tg@FreeBSD.org>1997-02-17 17:30:16 +0800
commit8f9ce9a439b74c371532931a4809a7f012f4842d (patch)
treedb98851c3f0eb28a512a06e105a5e1f2ae5605ff /x11-clocks/xalarm/files
parent4cefd8fc9e069070877af9de623dc0ec04501e00 (diff)
downloadfreebsd-ports-gnome-8f9ce9a439b74c371532931a4809a7f012f4842d.tar.gz
freebsd-ports-gnome-8f9ce9a439b74c371532931a4809a7f012f4842d.tar.zst
freebsd-ports-gnome-8f9ce9a439b74c371532931a4809a7f012f4842d.zip
Import of xalarm, an X based alarm clock.
Closes PR #2151. Submitted by: Kenneth Monville <desmo@bandwidth.org>
Diffstat (limited to 'x11-clocks/xalarm/files')
-rw-r--r--x11-clocks/xalarm/files/patch-aa19
-rw-r--r--x11-clocks/xalarm/files/patch-ab19
2 files changed, 38 insertions, 0 deletions
diff --git a/x11-clocks/xalarm/files/patch-aa b/x11-clocks/xalarm/files/patch-aa
new file mode 100644
index 000000000000..ee69e50bb739
--- /dev/null
+++ b/x11-clocks/xalarm/files/patch-aa
@@ -0,0 +1,19 @@
+*** Imakefile.orig Wed Dec 4 08:27:18 1996
+--- Imakefile Wed Dec 4 08:27:53 1996
+***************
+*** 23,29 ****
+ /**/# this may not work if xalarm is invoked from a pseudo terminal).
+ /**/# o Define USECUSERID to use cuserid(3) to get the user name.
+
+! DEFINES = $(SIGNAL_DEFINES) -DUSERENAME -DUSEGETHOSTNAME -DUSEGETPWUID
+
+
+ OBJS = alarm.o when.o warnings.o times.o dates.o file.o fns.o xalarm.o
+--- 23,29 ----
+ /**/# this may not work if xalarm is invoked from a pseudo terminal).
+ /**/# o Define USECUSERID to use cuserid(3) to get the user name.
+
+! DEFINES = $(SIGNAL_DEFINES) -DFORKRETURNSPID_T -DUSERENAME -DUSEGETHOSTNAME -DUSEGETPWUID
+
+
+ OBJS = alarm.o when.o warnings.o times.o dates.o file.o fns.o xalarm.o
diff --git a/x11-clocks/xalarm/files/patch-ab b/x11-clocks/xalarm/files/patch-ab
new file mode 100644
index 000000000000..1713384a28ff
--- /dev/null
+++ b/x11-clocks/xalarm/files/patch-ab
@@ -0,0 +1,19 @@
+*** file.c.orig Wed Dec 4 08:19:13 1996
+--- file.c Wed Dec 4 08:25:00 1996
+***************
+*** 229,235 ****
+ lock.l_type = F_WRLCK;
+ lock.l_whence = SEEK_SET;
+ lock.l_start = lock.l_len = (long) 0;
+! fcntl (fileno (file), F_SETFL, O_SYNC);
+ fcntl (fileno (file), F_SETLKW, &lock);
+ #endif
+
+--- 229,235 ----
+ lock.l_type = F_WRLCK;
+ lock.l_whence = SEEK_SET;
+ lock.l_start = lock.l_len = (long) 0;
+! fcntl (fileno (file), F_SETFL, O_FSYNC);
+ fcntl (fileno (file), F_SETLKW, &lock);
+ #endif
+