Browse Source

darwin compat

master
Felix von Leitner 4 years ago
parent
commit
b9af5f3905
2 changed files with 7 additions and 1 deletions
  1. +6
    -0
      fmt/fmt_escapecharxml.c
  2. +1
    -1
      socket/socket_fastopen.c

+ 6
- 0
fmt/fmt_escapecharxml.c View File

@@ -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

+ 1
- 1
socket/socket_fastopen.c View File

@@ -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