I am trying to cast a variable using the "ushort" type but am receiving an error of "u_short undeclared: first use of this function". I looked online and saw that it resides in the types.h header but when I try to include this header I receive another error of this header doesn't exist. Is this the correct header which I am trying to include or is there a way to get this header installed so I can make this conversion. Thanks!
Code:#include <types.h> ..... sin.sin_port = htons((u_short)port); $make $myTCP.c:7:60: error: types.h: No such file or directory $myTCP.c: In function ‘myTCPconnect’: $myTCP.c:48: error: ‘u_short’ undeclared (first use in this function)