]> git.pond.sub.org Git - empserver/blobdiff - src/lib/player/accept.c
Update copyright notice.
[empserver] / src / lib / player / accept.c
index 6145e0ae06a2973653c3142598d45f0f0d087d6c..ba2ca2e9b272504347dbf9367fd93f638de2f267 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  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
@@ -44,6 +44,7 @@
 #include "optlist.h"
 
 #if !defined(_WIN32)
+#include <arpa/inet.h>
 #include <sys/socket.h>
 #include <sys/wait.h>
 #include <sys/time.h>
@@ -73,7 +74,9 @@ struct player *
 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)