X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Ffake-gai-errnos.h;h=5ec371ca24c123410503d453faaa9360cdc249b8;hb=529b8fab8c21e7ae5af91d742ff202eab38e51f3;hp=4ffabb692fef8cc61d050912ee4ec627f0a2c562;hpb=a22041922f160667573e9a5ae3f4195e1668906a;p=meshlink diff --git a/src/fake-gai-errnos.h b/src/fake-gai-errnos.h index 4ffabb69..5ec371ca 100644 --- a/src/fake-gai-errnos.h +++ b/src/fake-gai-errnos.h @@ -1,19 +1,20 @@ -/* - * fake library for ssh - * - * This file is included in getaddrinfo.c and getnameinfo.c. - * See getaddrinfo.c and getnameinfo.c. - */ +#ifndef MESHLINK_FAKE_GAI_ERRNOS_H +#define MESHLINK_FAKE_GAI_ERRNOS_H -/* for old netdb.h */ #ifndef EAI_NODATA -#define EAI_NODATA 1 +#define EAI_NODATA 1 #endif #ifndef EAI_MEMORY -#define EAI_MEMORY 2 +#define EAI_MEMORY 2 #endif #ifndef EAI_FAMILY -#define EAI_FAMILY 3 +#define EAI_FAMILY 3 +#endif + +#ifndef EAI_SYSTEM +#define EAI_SYSTEM 4 +#endif + #endif