haiku: define ESOCKTNOSUPPORT to ENOTSUP

Haiku lacks some parts of POSIX API. Workaround to make sockets work.
This commit is contained in:
Daniel Kochmański 2016-09-06 21:55:56 +02:00
parent 517bc6a014
commit e640ef1c2b

View file

@ -1430,6 +1430,10 @@ ecl_make_stream_from_fd(#0,#1,(enum ecl_smmode)#2,
"#define NETDB_SUCCESS 0"
)
#+:haiku
(clines
"#define ESOCKTNOSUPPORT ENOTSUP")
(Clines
"#ifndef NETDB_INTERNAL"
"#define NETDB_INTERNAL 0"