diff options
author | tg <tg@FreeBSD.org> | 1997-02-17 17:30:16 +0800 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 1997-02-17 17:30:16 +0800 |
commit | 8f9ce9a439b74c371532931a4809a7f012f4842d (patch) | |
tree | db98851c3f0eb28a512a06e105a5e1f2ae5605ff /x11-clocks/xalarm/files | |
parent | 4cefd8fc9e069070877af9de623dc0ec04501e00 (diff) | |
download | freebsd-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-aa | 19 | ||||
-rw-r--r-- | x11-clocks/xalarm/files/patch-ab | 19 |
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 + |