Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140082899
D18472.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
644 B
Referenced Files
None
Subscribers
None
D18472.diff
View Options
Index: head/lib/libnv/msgio.c
===================================================================
--- head/lib/libnv/msgio.c
+++ head/lib/libnv/msgio.c
@@ -157,6 +157,14 @@
return (0);
}
+/*
+ * MacOS/Linux do not define struct cmsgcred but we need to bootstrap libnv
+ * when building on non-FreeBSD systems. Since they are not used during
+ * bootstrap we can just omit these two functions there.
+ */
+#ifndef __FreeBSD__
+#warning "cred_send() not supported on non-FreeBSD systems"
+#else
int
cred_send(int sock)
{
@@ -232,6 +240,7 @@
return (0);
}
+#endif
static int
fd_package_send(int sock, const int *fds, size_t nfds)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 21, 12:25 AM (10 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27103442
Default Alt Text
D18472.diff (644 B)
Attached To
Mode
D18472: Allow bootstrapping libnv on macOS and Linux
Attached
Detach File
Event Timeline
Log In to Comment