Re: portable getpeercred()
tags 610716 - patch
thanks
Btw, as of 0.2.2 this patch is no longer enough:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -DPORTMAP
-DINET6 -DVERSION=\"0.2.2\" -D_GNU_SOURCE -Wall -pipe
-DHAVE_RPCSEC_GSS -I/usr/include/gssglue -g -Wall -O2 -MT
libtirpc_la-auth_none.lo -MD -MP -MF .deps/libtirpc_la-auth_none.Tpo
-c auth_none.c -fPIC -DPIC -o .libs/libtirpc_la-auth_none.o
auth_none.c: In function 'authnone_create':
auth_none.c:82:2: error: unknown type name 'mutex_t'
auth_none.c:84:2: warning: implicit declaration of function
'mutex_lock' [-Wimplicit-function-declaration]
auth_none.c:88:4: warning: implicit declaration of function
'mutex_unlock' [-Wimplicit-function-declaration]
auth_none.c: In function 'authnone_marshal':
auth_none.c:114:2: error: unknown type name 'mutex_t'
auth_none.c: In function 'authnone_ops':
auth_none.c:162:2: error: unknown type name 'mutex_t'
2011/6/7 Robert Millan <rmh@debian.org>:
> user debian-bsd@lists.debian.org
> usertag 610716 kfreebsd
> thanks
>
> I think a better solution would be to reuse code from:
>
> http://arthurdejong.org/viewvc/nss-pam-ldapd/nss-pam-ldapd/compat/getpeercred.c?view=markup
>
> which brings in useful portability baggage.
>
> Actually, it'd be great if someone made a library out of it.
>
> --
> Robert Millan
>
--
Robert Millan
Reply to: