#define INT16SZ 2
#endif
-typedef unsigned char u_char;
-typedef unsigned int u_int;
+#define u_char uint8_t
+#define u_int unsigned int
/*
* WARNING: Don't even consider trying to compile this on a system where
*/
#include <usual/socket.h>
+#include <usual/string.h>
#ifndef HAVE_INET_PTON
#define INT16SZ 2
#endif
-typedef unsigned char u_char;
-typedef unsigned int u_int;
+#define u_char uint8_t
+#define u_int unsigned int
/*
* WARNING: Don't even consider trying to compile this on a system where