Browse Source

darwin compat

master
Felix von Leitner 6 years ago
parent
commit
b9af5f3905
  1. 6
      fmt/fmt_escapecharxml.c
  2. 2
      socket/socket_fastopen.c

6
fmt/fmt_escapecharxml.c

@ -29,5 +29,11 @@ string:
}
#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")));
#endif
#endif

2
socket/socket_fastopen.c

@ -7,7 +7,7 @@
#include <errno.h>
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));
#else
#ifdef ENOPROTOOPT

Loading…
Cancel
Save