Skip to content

add OpenBSD support (again) #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add OpenBSD support
  • Loading branch information
jg1uaa committed Jan 14, 2019
commit 159a388ca13a345adc85d37d0557760cabbdc0b1
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@

win := $(shell uname | grep CYGWIN)
dar := $(shell uname | grep Darwin)
obsd := $(shell uname | grep OpenBSD)

ifneq ($(win),)
include Makefile.win
else ifeq ($(dar),Darwin)
include Makefile.macosx
else ifeq ($(obsd),OpenBSD)
include Makefile.openbsd
else
include Makefile.linux
endif
6 changes: 3 additions & 3 deletions audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,12 @@ struct audio_s {

#if __WIN32__ || __APPLE__
#define DEFAULT_ADEVICE "" /* Windows: Empty string = default audio device. */
#else
#if USE_ALSA
#elif USE_ALSA
#define DEFAULT_ADEVICE "default" /* Use default device for ALSA. */
#elif __OpenBSD__
#define DEFAULT_ADEVICE "default" /* Use default device for OpenBSD-portaudio. */
#else
#define DEFAULT_ADEVICE "/dev/dsp" /* First audio device for OSS. */
#endif
#endif


Expand Down
2 changes: 1 addition & 1 deletion dw-start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Run this from crontab periodically to start up
# Dire Wolf automatically.
Expand Down
4 changes: 4 additions & 0 deletions kissutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
#else

#include <stdlib.h>
#ifdef __OpenBSD__
#include <errno.h>
#else
#include <sys/errno.h>
#endif
#include <sys/types.h>
#include <sys/socket.h>

Expand Down