darwin compat

master
leitner 9 years ago
parent f74f9b9b25
commit 189d8bad1d

@ -29,5 +29,11 @@ string:
} }
#ifdef __GNUC__ #ifdef __GNUC__
#ifdef __APPLE__
size_t fmt_escapecharhtml(char* dest,uint32_t ch) {
return fmt_escapecharxml(dest,ch);
}
#else
size_t fmt_escapecharhtml(char* dest,uint32_t ch) __attribute__((__alias__("fmt_escapecharxml"))); size_t fmt_escapecharhtml(char* dest,uint32_t ch) __attribute__((__alias__("fmt_escapecharxml")));
#endif #endif
#endif

@ -7,7 +7,7 @@
#include <errno.h> #include <errno.h>
int socket_fastopen(int s) { int socket_fastopen(int s) {
#ifdef TCP_FASTOPEN #if defined(SOL_TCP) && defined(TCP_FASTOPEN)
return setsockopt(s,SOL_TCP,TCP_FASTOPEN,(int[]){ 5 }, sizeof(int)); return setsockopt(s,SOL_TCP,TCP_FASTOPEN,(int[]){ 5 }, sizeof(int));
#else #else
#ifdef ENOPROTOOPT #ifdef ENOPROTOOPT

Loading…
Cancel
Save