]> git.pond.sub.org Git - empserver/blobdiff - src/client/ioqueue.h
(main): Don't bother to close socket before exit().
[empserver] / src / client / ioqueue.h
index 860d479cdda882f4f802684db7dbbbe7cb51b0b1..9a88c385e48bbbf041f805d68a6ebf955eb6f2e4 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -35,6 +35,8 @@
 #ifndef IOQUEUE_H
 #define IOQUEUE_H
 
+#include "queue.h"
+
 struct ioqueue {
     struct qelem queue;                /* queue fwd/back */
     int bsize;                 /* basic block size */
@@ -45,7 +47,7 @@ struct io {
     struct qelem queue;                /* list of ioqueue elements */
     int nbytes;                        /* number of data bytes present */
     int offset;                        /* offset into current entry */
-    char *data;                /* pointer to start */
+    char *data;                        /* pointer to start */
 };
 
 void ioq_init(struct ioqueue *ioq, int bsize);