summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/morse/Makefile4
-rw-r--r--games/morse/morse.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/games/morse/Makefile b/games/morse/Makefile
index 92d1121..4435422 100644
--- a/games/morse/Makefile
+++ b/games/morse/Makefile
@@ -4,8 +4,4 @@
PROG= morse
MAN= morse.6
-.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
-CFLAGS += -DSPEAKER=\"/dev/speaker\"
-.endif
-
.include <bsd.prog.mk>
diff --git a/games/morse/morse.c b/games/morse/morse.c
index 7663402..45c64b8 100644
--- a/games/morse/morse.c
+++ b/games/morse/morse.c
@@ -63,6 +63,9 @@ static const char rcsid[] =
#include <termios.h>
#include <unistd.h>
+/* Always use the speaker, let the open fail if -p is selected */
+#define SPEAKER "/dev/speaker"
+
#ifdef SPEAKER
#include <dev/speaker/speaker.h>
#endif
OpenPOWER on IntegriCloud