endif
ifeq ($(OS), FreeBSD)
FLAGS+= -D_DEFAULT_SOURCE ${CPPFLAGS} ${CFLAGS}
LINK+= ${LIBS}
LINK+= ${LIBS} -lutil
BIND = bin
#include <utmpx.h>
#include <xcb/xcb.h>
#include <sys/param.h>
#include <sys/types.h>
#include <login_cap.h>
int get_free_display()
{
char xlock[1024];
exit(EXIT_FAILURE);
}
ok = setusercontext(NULL, pwd, pwd->pw_uid, LOGIN_SETALL);
if (ok != 0)
dgn_throw(DGN_USER_UID);
/* This is done by setusercontext() on FreeBSD. */
#if 0
ok = setgid(pwd->pw_gid);
#endif
// get a display
char vt[5];
-