Browse Source

stubs: include winsock2.h to get htons/htonl declaration

pull/79/head
Steve Lhomme 7 months ago
parent
commit
929b12321d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      caca/caca_stubs.h

+ 2
- 0
caca/caca_stubs.h View File

@@ -34,6 +34,8 @@ static inline int geterrno(void) { return errno; }
# include <arpa/inet.h>
# elif defined HAVE_NETINET_IN_H
# include <netinet/in.h>
# elif defined HAVE_WINSOCK2_H
# include <winsock2.h>
# endif
# define hton16 htons
# define hton32 htonl


Loading…
Cancel
Save