diff options
author | Ruediger Meier | 2016-02-19 01:44:14 +0100 |
---|---|---|
committer | Ruediger Meier | 2016-02-26 03:29:41 +0100 |
commit | 4199e9891eb4b024792b18b21f576331d370fdc1 (patch) | |
tree | 55a7dd9c1a9b083d49231af529c127b94c4a1703 /disk-utils/fdisk.c | |
parent | Merge branch 'ldadd-cflags-warnings' of https://github.com/rudimeier/util-linux (diff) | |
download | kernel-qcow2-util-linux-4199e9891eb4b024792b18b21f576331d370fdc1.tar.gz kernel-qcow2-util-linux-4199e9891eb4b024792b18b21f576331d370fdc1.tar.xz kernel-qcow2-util-linux-4199e9891eb4b024792b18b21f576331d370fdc1.zip |
logger: use SCM_CREDENTIALS on LINUX only
This is a build fix of FreeBSD and OSX. Basically we revert
the following commit for non-linux systems:
27a9eb53 "use --id as local socket credentials"
Note I could also compile it like this:
#ifdef HAVE_SYS_UCRED_H
# define _WANT_UCRED
# include <sys/param.h>
# include <sys/ucred.h>
# define SCM_CREDENTIALS SCM_CREDS
#endif
[...]
#ifdef _linux_
cred->pid = ctl->pid;
#endif
[...]
... but don't know how to test whether it does what it
should.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'disk-utils/fdisk.c')
0 files changed, 0 insertions, 0 deletions