mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-13 20:11:19 +02:00
21 lines
823 B
C
21 lines
823 B
C
--- scheduler/auth.c.orig 2016-06-14 19:45:32.000000000 +0200
|
|
+++ scheduler/auth.c 2016-09-08 08:05:20.804892000 +0200
|
|
@@ -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,
|