ObjFW  Diff

Differences From Artifact [b809e736ac]:

To Artifact [8eded04c5d]:


15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 */

#include <string.h>
#include <errno.h>

#import "macros.h"

#ifdef HAVE_NETDB_H
# include <netdb.h>
#endif

#ifndef _WIN32
# define GET_ERRNO	errno
# ifdef OF_HAVE_SOCKETS
#  if !defined(HAVE_THREADSAFE_GETADDRINFO) && defined(HAVE_H_ERRNO)
#   define GET_AT_ERRNO	h_errno







|
|







15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 */

#include <string.h>
#include <errno.h>

#import "macros.h"

#ifdef OF_HAVE_SOCKETS
# include "socket_helpers.h"
#endif

#ifndef _WIN32
# define GET_ERRNO	errno
# ifdef OF_HAVE_SOCKETS
#  if !defined(HAVE_THREADSAFE_GETADDRINFO) && defined(HAVE_H_ERRNO)
#   define GET_AT_ERRNO	h_errno