aboutsummaryrefslogtreecommitdiffstats
path: root/audio/workman
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-02-17 05:11:14 +0800
committerobrien <obrien@FreeBSD.org>1997-02-17 05:11:14 +0800
commitba3f8bf8edb336fa75128f231355c5d7be97171c (patch)
tree720589c55dc548a72874db3a19faa7b5d541f89e /audio/workman
parent6568109b3978da9048e0895fb9361e3c9a72aa22 (diff)
downloadfreebsd-ports-gnome-ba3f8bf8edb336fa75128f231355c5d7be97171c.tar.gz
freebsd-ports-gnome-ba3f8bf8edb336fa75128f231355c5d7be97171c.tar.zst
freebsd-ports-gnome-ba3f8bf8edb336fa75128f231355c5d7be97171c.zip
A quick purousal thru our port's patches directory shows a *WAY* over use of
__FreeBSD__. That said, add __OpenBSD__ and __NetBSD__ where approapiate.
Diffstat (limited to 'audio/workman')
-rw-r--r--audio/workman/files/patch-aa8
1 files changed, 4 insertions, 4 deletions
diff --git a/audio/workman/files/patch-aa b/audio/workman/files/patch-aa
index cbe716f193dc..969ffe59f271 100644
--- a/audio/workman/files/patch-aa
+++ b/audio/workman/files/patch-aa
@@ -218,7 +218,7 @@ diff -c --recursive ./plat_freebsd.c ../workman.new/./plat_freebsd.c
}
if (ioctl(d->fd, CDIOCREADSUBCHANNEL, &sc)) {
-! #if defined(__NetBSD__) || defined(__FreeBSD__)
+! #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
/* we need to release the device so the kernel will notice
reloaded media */
(void) close(d->fd);
@@ -252,12 +252,12 @@ diff -c --recursive ./plat_freebsd.c ../workman.new/./plat_freebsd.c
if (fstatfs(stbuf.st_rdev, &buf) == 0)
return (-3);
-! #if defined(__NetBSD__) || defined(__FreeBSD__)
+! #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
rval = ioctl(d->fd, CDIOCALLOW);
if (rval == 0)
#endif
rval = ioctl(d->fd, CDIOCEJECT);
-! #if defined(__NetBSD__) || defined(__FreeBSD__)
+! #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
if (rval == 0)
rval = ioctl(d->fd, CDIOCPREVENT);
#endif
@@ -300,7 +300,7 @@ diff -c --recursive ./workman_stubs.c ../workman.new/./workman_stubs.c
Panel_item quitbutton;
char *getenv(), *WMstrdup();
-+ #if defined(__FreeBSD__)
++ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ /* FreeBSD has a special directory for pidfiles, I guess. */
+ char *pidfile = "/var/run/workman.pid";
+ #else