Skip to content

Commit

Permalink
sockaddr_storage is included in new pspsdk
Browse files Browse the repository at this point in the history
  • Loading branch information
tpimh committed Jul 12, 2024
1 parent 4ceb858 commit fc8bad2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/usocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,6 @@
#define INET6_ADDRSTRLEN INET_ADDRSTRLEN
#endif

/* Replacement for sockaddr storage that we can use internally on platforms
* that lack it. It is not space-efficient, but neither is sockaddr_storage.
*/
struct sockaddr_storage {
union {
struct sockaddr ss_sa;
struct sockaddr_in ss_sin;
#ifndef NOIPV6
struct sockaddr_in6 ss_sin6;
#endif
char ss_padding[128];
} ss_union;
};
#endif

#ifndef SO_REUSEPORT
Expand Down

0 comments on commit fc8bad2

Please sign in to comment.