File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 79
79
typedef SSIZE_T ssize_t ;
80
80
#endif
81
81
82
+ // _POSIX_HOST_NAME_MAX is broken in gcc-13 at least on MacOS
83
+ #ifndef _POSIX_HOST_NAME_MAX
84
+ //#warning The limits.h include is missing the _POSIX_HOST_NAME_MAX define.
85
+ #define _POSIX_HOST_NAME_MAX 255
86
+ #endif
87
+
82
88
// MSG_NOSIGNAL is Linux and most BSDs only, not macOS or Windows
83
89
#ifndef MSG_NOSIGNAL
84
90
#define MSG_NOSIGNAL 0
Original file line number Diff line number Diff line change 23
23
#include <errno.h>
24
24
25
25
#include <limits.h>
26
- // _POSIX_HOST_NAME_MAX is broken in gcc-13 at least on MacOS
27
- #ifndef _POSIX_HOST_NAME_MAX
28
- //#warning The limits.h include is missing the _POSIX_HOST_NAME_MAX define.
29
- #define _POSIX_HOST_NAME_MAX 255
30
- #endif
31
26
// gethostname() needs _XOPEN_SOURCE 500 on unistd.h
32
27
#ifndef _XOPEN_SOURCE
33
28
#define _XOPEN_SOURCE 500
75
70
#define gai_strerror strerror
76
71
#endif
77
72
73
+ // _POSIX_HOST_NAME_MAX is broken in gcc-13 at least on MacOS
74
+ #ifndef _POSIX_HOST_NAME_MAX
75
+ //#warning The limits.h include is missing the _POSIX_HOST_NAME_MAX define.
76
+ #define _POSIX_HOST_NAME_MAX 255
77
+ #endif
78
+
78
79
/* Datagram (UDP) client */
79
80
80
81
typedef struct {
You can’t perform that action at this time.
0 commit comments