/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2000, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2004, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
#include "optlist.h"
#if !defined(_WIN32)
+#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <sys/time.h>
player_new(int s, struct sockaddr_in *sin)
{
struct player *lp;
+#ifdef RESOLVE_IPADDRESS
struct hostent *hostp;
+#endif
lp = (struct player *)malloc(sizeof(struct player));
if (!lp)
/*ARGSUSED*/
void
-player_accept(void *argv)
+player_accept(void *unused)
{
struct sockaddr_in sin;
struct servent *sp;
short port;
int val;
struct player *np;
- socklen_t len;
+ int len;
int ns;
int set = 1;
int stacksize;
exit(1);
}
#else
- logerror
- ("Alpha/Linux? You don't support SO_REUSEADDR yet, do you?\n");
+ logerror("Alpha/Linux? You don't support SO_REUSEADDR yet, do you?\n");
#endif
if (bind(s, (struct sockaddr *)&sin, sizeof(sin)) < 0) {
logerror("inet socket bind");