diff options
author | Alexander Shendi <Alexander.Shendi@web.de> | 2021-04-18 13:42:26 +0200 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-04-18 13:42:26 +0200 |
commit | f19514a211ad89f32876f6090dcc2212126b913c (patch) | |
tree | 9244ddb0ef406c02996b7285881d8eda1ec5a212 /socket.c | |
parent | b0469c2779c0879a25631675b3547a13f55e3e91 (diff) | |
download | txr-f19514a211ad89f32876f6090dcc2212126b913c.tar.gz txr-f19514a211ad89f32876f6090dcc2212126b913c.tar.bz2 txr-f19514a211ad89f32876f6090dcc2212126b913c.zip |
port: build on OpenBSD
Tested on OpenBSD amd64.
* socket.c: Add <sys/socket.h>. Test for AI_V4MAPPED and
AI_ALL being defined.
* sysif.c: Add <stdarg.h>. Test for EMULTIHOP, ENODATA,
ENOLINK, ENOSR, ENOSTR, EPIPE and ETIME.
* termios.c: est for OFILL, VTDLY, VT0 and VT1.
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -35,6 +35,7 @@ #include <errno.h> #include <unistd.h> #include <fcntl.h> +#include <sys/socket.h> #include <sys/un.h> #include <netdb.h> #include "config.h" @@ -1156,8 +1157,12 @@ void sock_load_init(void) reg_varl(intern(lit("ai-passive"), user_package), num_fast(AI_PASSIVE)); reg_varl(intern(lit("ai-canonname"), user_package), num_fast(AI_CANONNAME)); reg_varl(intern(lit("ai-numerichost"), user_package), num_fast(AI_NUMERICHOST)); +#ifdef AI_V4MAPPED reg_varl(intern(lit("ai-v4mapped"), user_package), num_fast(AI_V4MAPPED)); +#endif +#ifdef AI_ALL reg_varl(intern(lit("ai-all"), user_package), num_fast(AI_ALL)); +#endif reg_varl(intern(lit("ai-addrconfig"), user_package), num_fast(AI_ADDRCONFIG)); reg_varl(intern(lit("ai-numericserv"), user_package), num_fast(AI_NUMERICSERV)); #endif |