summaryrefslogtreecommitdiff
path: root/libjack/shm.c
diff options
context:
space:
mode:
authorjoq <joq@0c269be4-1314-0410-8aa9-9f06e86f4224>2004-12-11 05:53:59 +0000
committerjoq <joq@0c269be4-1314-0410-8aa9-9f06e86f4224>2004-12-11 05:53:59 +0000
commit4e1c06db7aa2a9717adffe84152d7bddc2d1fd71 (patch)
treedb33c0f7fa00816a68993fd0c640f8244fb730cb /libjack/shm.c
parent2398b7b11f0f815ab9357428efabedb4ecf214c9 (diff)
downloadjack1-4e1c06db7aa2a9717adffe84152d7bddc2d1fd71.tar.gz
print SHM type message
git-svn-id: svn+ssh://jackaudio.org/trunk/jack@838 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'libjack/shm.c')
-rw-r--r--libjack/shm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libjack/shm.c b/libjack/shm.c
index d14a674..ad9a419 100644
--- a/libjack/shm.c
+++ b/libjack/shm.c
@@ -1,5 +1,6 @@
/*
Copyright (C) 2003 Paul Davis
+ Copyright (C) 2004 Jack O'Quin
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -38,8 +39,10 @@
#ifdef USE_POSIX_SHM
static jack_shmtype_t jack_shmtype = shm_POSIX;
+static char *shmtype_name = "POSIX";
#else
static jack_shmtype_t jack_shmtype = shm_SYSV;
+static char *shmtype_name = "System V";
#endif
/* interface-dependent forward declarations */
@@ -235,6 +238,8 @@ jack_register_server (const char *server_name)
int i;
pid_t my_pid = getpid ();
+ fprintf (stderr, "JACK compiled with %s SHM support.\n", shmtype_name);
+
jack_shm_lock_registry ();
/* See if server_name already registered. Since server names