]> code.delx.au - pulseaudio/commitdiff
a few FreeBSD fixes, from alexis
authorLennart Poettering <lennart@poettering.net>
Tue, 30 Sep 2008 23:31:56 +0000 (01:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 30 Sep 2008 23:31:56 +0000 (01:31 +0200)
Signed-off-by: Lennart Poettering <lennart@poettering.net>
src/Makefile.am
src/pulsecore/core-util.c
src/pulsecore/proplist-util.c
src/pulsecore/protocol-native.c

index 14eb7f095e1067b2ace11f87dfbfb4f3a359f09c..ff038a8a20371d2a502ad1bd5739843a180955e2 100644 (file)
@@ -62,8 +62,8 @@ AM_CFLAGS += -DPA_MACHINE_ID=\"$(localstatedir)/lib/dbus/machine-id\"
 # This cool debug trap works on i386/gcc only
 AM_CFLAGS += '-DDEBUG_TRAP=__asm__("int $$3")'
 
-AM_LIBADD = $(PTHREAD_LIBS)
-AM_LDADD = $(PTHREAD_LIBS)
+AM_LIBADD = $(PTHREAD_LIBS) $(INTLLIBS)
+AM_LDADD = $(PTHREAD_LIBS) $(INTLLIBS)
 
 # Only required on some platforms but defined for all to avoid errors
 AM_LDFLAGS = -Wl,-no-undefined -Wl,--gc-sections
index d7c5caf85e007a028669caddbc0a04e90922c2c9..0bc5cb405d0ca95b0ea15055e524f1dcbba2a58c 100644 (file)
@@ -2351,7 +2351,7 @@ int pa_reset_sigs(int except, ...) {
 int pa_reset_sigsv(const int except[]) {
     int sig;
 
-    for (sig = 1; sig < _NSIG; sig++) {
+    for (sig = 1; sig < NSIG; sig++) {
         pa_bool_t reset = TRUE;
 
         switch (sig) {
index 6005775ed1779c3efea7d9c06938930d5d2cbe5a..4d505f57bee5250e4d859cd75c36d0fae46f03e5 100644 (file)
@@ -37,7 +37,7 @@
 
 void pa_init_proplist(pa_proplist *p) {
     int a, b;
-#ifndef HAVE_DECL_ENVIRON
+#if !HAVE_DECL_ENVIRON
     extern char **environ;
 #endif
     char **e;
index 6ccee571413ed5639ec0830201d21a269f5e47df..5c6dbf44d44206939b6ec1e1e188c7ee0676aae8 100644 (file)
@@ -2192,6 +2192,7 @@ static void command_auth(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_ta
         if (c->version < 10 || (c->version >= 13 && !shm_on_remote))
             do_shm = FALSE;
 
+#ifdef HAVE_CREDS
     if (do_shm) {
         /* Only enable SHM if both sides are owned by the same
          * user. This is a security measure because otherwise data
@@ -2201,6 +2202,7 @@ static void command_auth(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_ta
         if (!(creds = pa_pdispatch_creds(pd)) || getuid() != creds->uid)
             do_shm = FALSE;
     }
+#endif
 
     pa_log_debug("Negotiated SHM: %s", pa_yes_no(do_shm));
     pa_pstream_enable_shm(c->pstream, do_shm);