Without sys/select.h the FD_SET macro and others are undefined.
Manpage and usage now says -k pass.
---
sic.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sic.c b/sic.c
index ecefaf2..7d9c677 100644
--- a/sic.c
+++ b/sic.c
@@ -1,4 +1,6 @@
/* See LICENSE file for license details. */
+#include <sys/select.h>
+
#include <ctype.h>
#include <errno.h>
#include <stdarg.h>
@@ -137,10 +139,9 @@ parsesrv(char *cmd) {
}
}
-
static void
usage(void) {
- eprint("usage: sic [-h host] [-p port] [-n nick] [-k keyword] [-v]\n",
argv0);
+ eprint("usage: %s [-h host] [-p port] [-n nick] [-k pass] [-v]\n",
argv0);
}
int
--
2.13.4