From 396cc434ebb499ad178b24904cb36a9ec7d834e8 Mon Sep 17 00:00:00 2001 From: "Estevan Castilho (Tevo)" Date: Sun, 28 Jan 2024 00:16:03 +0000 Subject: [PATCH] Mark ENOLINK and EMULTIHOP as optional Both are undefined on OpenBSD; fixes #48. --- src/sockets/grovel.lisp | 2 +- src/syscalls/ffi-types-unix.lisp | 4 ++-- src/syscalls/pkgdcl.lisp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sockets/grovel.lisp b/src/sockets/grovel.lisp index 6ebab3e..d1bb1dd 100644 --- a/src/sockets/grovel.lisp +++ b/src/sockets/grovel.lisp @@ -47,7 +47,7 @@ ((:eprototype "EPROTOTYPE")) ((:enoprotoopt "ENOPROTOOPT")) ((:eremote "EREMOTE")) - ((:enolink "ENOLINK")) + ((:enolink "ENOLINK") :optional t) ((:epfnosupport "EPFNOSUPPORT")) ((:eafnosupport "EAFNOSUPPORT")) ((:eaddrinuse "EADDRINUSE")) diff --git a/src/syscalls/ffi-types-unix.lisp b/src/syscalls/ffi-types-unix.lisp index c0ec54a..7c1f89a 100644 --- a/src/syscalls/ffi-types-unix.lisp +++ b/src/syscalls/ffi-types-unix.lisp @@ -126,7 +126,7 @@ ((:emfile "EMFILE")) ((:emlink "EMLINK")) ((:emsgsize "EMSGSIZE")) - ((:emultihop "EMULTIHOP")) + ((:emultihop "EMULTIHOP") :optional t) ((:enametoolong "ENAMETOOLONG")) ((:enavail "ENAVAIL") :optional t) ((:enetdown "ENETDOWN")) @@ -142,7 +142,7 @@ ((:enoexec "ENOEXEC")) ((:enokey "ENOKEY") :optional t) ((:enolck "ENOLCK")) - ((:enolink "ENOLINK")) + ((:enolink "ENOLINK") :optional t) ((:enomedium "ENOMEDIUM") :optional t) ((:enomem "ENOMEM")) ((:enomsg "ENOMSG")) diff --git a/src/syscalls/pkgdcl.lisp b/src/syscalls/pkgdcl.lisp index 4a8ac0b..4f7ad89 100644 --- a/src/syscalls/pkgdcl.lisp +++ b/src/syscalls/pkgdcl.lisp @@ -98,9 +98,9 @@ #:echild #:econnaborted #:econnrefused #:econnreset #:edeadlk #:edestaddrreq #:edom #:edquot #:eexist #:efault #:efbig #:ehostdown #:ehostunreach #:eidrm #:eilseq #:einprogress #:eintr #:einval #:eio - #:eisconn #:eisdir #:eloop #:emfile #:emlink #:emsgsize #:emultihop + #:eisconn #:eisdir #:eloop #:emfile #:emlink #:emsgsize #-openbsd #:emultihop #:enametoolong #:enetdown #:enetreset #:enetunreach #:enfile - #:enobufs #-dragonfly #:enodata #:enodev #:enoent #:enoexec #:enolck #:enolink + #:enobufs #-dragonfly #:enodata #:enodev #:enoent #:enoexec #:enolck #-openbsd #:enolink #:enomem #:enomsg #:enonet #:enoprotoopt #:enospc #-dragonfly #:enosr #-dragonfly #:enostr #:enosys #:enotconn #:enotdir #:enotempty #:enotsock #:enotsup #:enotty #:enxio #:eopnotsupp #:eoverflow #:eperm #:epipe #:eproto -- 2.11.4.GIT