mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
Use autoconf detected define for getgroups() type.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@422 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
d5ce3ecef2
commit
72795fcaa6
5 changed files with 16 additions and 3 deletions
|
|
@ -62,6 +62,10 @@
|
|||
#elif defined(USE_TCP6_SOCKETS)
|
||||
#define SOCKET_DESCRIPTION "(TCP/IPv6 sockets)"
|
||||
#define SOCKET_USAGE "port=<TCP port number> loopback=<listen on loopback device only?>"
|
||||
#ifdef OS_IS_WIN32
|
||||
static const struct in6_addr in6addr_any = {{ IN6ADDR_ANY_INIT }};
|
||||
static const struct in6_addr in6addr_loopback = {{ IN6ADDR_LOOPBACK_INIT }};
|
||||
#endif
|
||||
#else
|
||||
#define SOCKET_DESCRIPTION "(UNIX sockets)"
|
||||
#define SOCKET_USAGE "socket=<path to UNIX socket>"
|
||||
|
|
|
|||
|
|
@ -367,12 +367,12 @@ static void setup_context(struct pa_context *c, struct pa_iochannel *io) {
|
|||
assert(!c->pdispatch);
|
||||
c->pdispatch = pa_pdispatch_new(c->mainloop, command_table, PA_COMMAND_MAX);
|
||||
assert(c->pdispatch);
|
||||
|
||||
/*
|
||||
if (!c->conf->cookie_valid) {
|
||||
pa_context_fail(c, PA_ERROR_AUTHKEY);
|
||||
goto finish;
|
||||
}
|
||||
|
||||
*/
|
||||
t = pa_tagstruct_new(NULL, 0);
|
||||
assert(t);
|
||||
pa_tagstruct_putu32(t, PA_COMMAND_AUTH);
|
||||
|
|
|
|||
|
|
@ -70,6 +70,10 @@
|
|||
|
||||
#define CONNECT_TIMEOUT 5
|
||||
|
||||
#ifdef OS_IS_WIN32
|
||||
static const struct in6_addr in6addr_loopback = {{ IN6ADDR_LOOPBACK_INIT }};
|
||||
#endif
|
||||
|
||||
struct pa_socket_client {
|
||||
int ref;
|
||||
struct pa_mainloop_api *mainloop;
|
||||
|
|
|
|||
|
|
@ -65,6 +65,11 @@
|
|||
#include "util.h"
|
||||
#include "log.h"
|
||||
|
||||
#ifdef OS_IS_WIN32
|
||||
static const struct in6_addr in6addr_any = {{ IN6ADDR_ANY_INIT }};
|
||||
static const struct in6_addr in6addr_loopback = {{ IN6ADDR_LOOPBACK_INIT }};
|
||||
#endif
|
||||
|
||||
struct pa_socket_server {
|
||||
int ref;
|
||||
int fd;
|
||||
|
|
|
|||
|
|
@ -773,7 +773,7 @@ finish:
|
|||
/* Check the current user is member of the specified group */
|
||||
int pa_uid_in_group(const char *name, gid_t *gid) {
|
||||
gid_t *gids, tgid;
|
||||
long n = sysconf(_SC_NGROUPS_MAX);
|
||||
GETGROUPS_T n = sysconf(_SC_NGROUPS_MAX);
|
||||
int r = -1, i;
|
||||
|
||||
assert(n > 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue