Browse Source

nativenet: fix interrogate error recognizing sockaddr types

rdb 7 years ago
parent
commit
4e42c4c941
1 changed files with 3 additions and 1 deletions
  1. 3 1
      panda/src/nativenet/socket_portable.h

+ 3 - 1
panda/src/nativenet/socket_portable.h

@@ -12,7 +12,9 @@ const int BASIC_ERROR = -1;
 // Interrogate doesn't need to parse any of this.
 
 typedef unsigned long SOCKET;
-typedef unsigned short sa_family_t;
+
+#include <sys/socket.h>
+#include <netinet/in.h>
 
 /************************************************************************
 * HP SOCKET LIBRARY STUFF