Explorar el Código

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

pull/79/head
Steve Lhomme hace 7 meses
padre
commit
929b12321d
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      caca/caca_stubs.h

+ 2
- 0
caca/caca_stubs.h Ver fichero

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


Cargando…
Cancelar
Guardar