Skip to content

Commit

Permalink
Fixes for apple and windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Adamushko committed Jun 24, 2024
1 parent 6998f92 commit d0d55ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ static inline int popcountl(uint64_t x)
return (x * 0x01010101) >> 24;
}
#endif

#ifndef IPTOS_ECN_CE
# define IPTOS_ECN_CE 0x03
#endif
1 change: 1 addition & 0 deletions lib/quicly.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <stdlib.h>
#if !defined(_WIN32)
# include <netinet/ip.h>
# include <arpa/inet.h> // inet_pton for apple
#endif
#include "khash.h"
#include "quicly.h"
Expand Down

0 comments on commit d0d55ff

Please sign in to comment.