--- scheduler/auth.c.orig 2015-10-26 19:46:02 UTC +++ scheduler/auth.c @@ -456,7 +456,7 @@ cupsdAuthorize(cupsd_client_t *con) /* I peersize = sizeof(peercred); -# ifdef __APPLE__ +# if defined(__APPLE__) || defined(__FreeBSD__) if (getsockopt(httpGetFd(con->http), 0, LOCAL_PEERCRED, &peercred, &peersize)) # else if (getsockopt(httpGetFd(con->http), SOL_SOCKET, SO_PEERCRED, &peercred, &peersize)) @@ -854,7 +854,7 @@ cupsdAuthorize(cupsd_client_t *con) /* I peersize = sizeof(peercred); -# ifdef __APPLE__ +# if defined(__APPLE__) || defined(__FreeBSD__) if (getsockopt(httpGetFd(con->http), 0, LOCAL_PEERCRED, &peercred, &peersize)) # else if (getsockopt(httpGetFd(con->http), SOL_SOCKET, SO_PEERCRED, &peercred,