summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-10-27 08:36:37 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-10-27 08:36:37 +0000
commita9d013e6b29db4b96325e53b40f389149ff76ebf (patch)
treedc71c156e83254554c530b940de2371fe5f51bc0
parentcacccf8a4c1677840b4a0c8d8e65bb497db9410a (diff)
don't (re-)define SNDIO_USER and SNDIO_PRIO if they are already defined,
this way they can be defined at compilation time
-rw-r--r--usr.bin/aucat/aucat.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c
index ee8cd8cb451..791782a87d1 100644
--- a/usr.bin/aucat/aucat.c
+++ b/usr.bin/aucat/aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aucat.c,v 1.137 2012/06/27 06:53:13 ratchov Exp $ */
+/* $OpenBSD: aucat.c,v 1.138 2012/10/27 08:36:36 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -23,6 +23,7 @@
#include <err.h>
#include <errno.h>
#include <fcntl.h>
+#include <grp.h>
#include <limits.h>
#include <pwd.h>
#include <signal.h>
@@ -49,12 +50,16 @@
/*
* unprivileged user name
*/
+#ifndef SNDIO_USER
#define SNDIO_USER "_sndio"
+#endif
/*
* priority when run as root
*/
+#ifndef SNDIO_PRIO
#define SNDIO_PRIO (-20)
+#endif
#define PROG_AUCAT "aucat"
#define PROG_SNDIOD "sndiod"