Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 159a388

Browse files
committedJan 14, 2019
add OpenBSD support
1 parent 366c698 commit 159a388

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed
 

‎Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66

77
win := $(shell uname | grep CYGWIN)
88
dar := $(shell uname | grep Darwin)
9+
obsd := $(shell uname | grep OpenBSD)
910

1011
ifneq ($(win),)
1112
include Makefile.win
1213
else ifeq ($(dar),Darwin)
1314
include Makefile.macosx
15+
else ifeq ($(obsd),OpenBSD)
16+
include Makefile.openbsd
1417
else
1518
include Makefile.linux
1619
endif

‎audio.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,12 @@ struct audio_s {
302302

303303
#if __WIN32__ || __APPLE__
304304
#define DEFAULT_ADEVICE "" /* Windows: Empty string = default audio device. */
305-
#else
306-
#if USE_ALSA
305+
#elif USE_ALSA
307306
#define DEFAULT_ADEVICE "default" /* Use default device for ALSA. */
307+
#elif __OpenBSD__
308+
#define DEFAULT_ADEVICE "default" /* Use default device for OpenBSD-portaudio. */
308309
#else
309310
#define DEFAULT_ADEVICE "/dev/dsp" /* First audio device for OSS. */
310-
#endif
311311
#endif
312312

313313

‎dw-start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Run this from crontab periodically to start up
44
# Dire Wolf automatically.

‎kissutil.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@
4646
#else
4747

4848
#include <stdlib.h>
49+
#ifdef __OpenBSD__
50+
#include <errno.h>
51+
#else
4952
#include <sys/errno.h>
53+
#endif
5054
#include <sys/types.h>
5155
#include <sys/socket.h>
5256

0 commit comments

Comments
 (0)
Please sign in to comment.