Minor change to compile on Ubuntu12

pull/762/head
René Cannaò 10 years ago
parent 256e7512e6
commit 3d197aa9f3

@ -5,12 +5,11 @@
* returns the socket
*/
int listen_on_port(char *ip, uint16_t port, int backlog, bool reuseport) {
int arg_on = 1;
struct addrinfo hints = {
.ai_flags = AI_PASSIVE,
.ai_family = AF_UNSPEC,
.ai_socktype = SOCK_STREAM
};
int arg_on = 1;
struct addrinfo hints;
hints.ai_flags = AI_PASSIVE;
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
struct addrinfo *next, *ai;
char port_string[NI_MAXSERV];
int sd = -1;

Loading…
Cancel
Save