diff options
-rw-r--r-- | xserver/os/osdep.h | 7 | ||||
-rw-r--r-- | xserver/os/privsep.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/xserver/os/osdep.h b/xserver/os/osdep.h index fff088701..2e5a22907 100644 --- a/xserver/os/osdep.h +++ b/xserver/os/osdep.h @@ -269,4 +269,11 @@ extern void XdmcpRegisterBroadcastAddress(const struct sockaddr_in *addr); extern void XdmAuthenticationInit(const char *cookie, int cookie_length); #endif +#ifdef X_PRIVSEP +extern int priv_init(uid_t, gid_t); +extern int priv_open_device(const char *); +extern void priv_init_parent_process(pid_t); +extern void priv_signal_parent(void); +#endif + #endif /* _OSDEP_H_ */ diff --git a/xserver/os/privsep.c b/xserver/os/privsep.c index 2da3078be..6cc8cda47 100644 --- a/xserver/os/privsep.c +++ b/xserver/os/privsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.c,v 1.22 2012/08/07 20:15:23 matthieu Exp $ */ +/* $OpenBSD: privsep.c,v 1.23 2012/08/07 20:16:12 matthieu Exp $ */ /* * Copyright 2001 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -49,6 +49,7 @@ #include <unistd.h> #include "os.h" +#include "osdep.h" enum cmd_types { PRIV_OPEN_DEVICE, |