d8b0eca
--- cstream-2.7.6/cstream.c	2008-12-19 22:38:37.000000000 +0100
d8b0eca
+++ cstream-2.7.6-Wextra/cstream.c	2008-12-20 11:21:12.000000000 +0100
8a58e08
@@ -97,6 +97,7 @@
8a58e08
 #else
8a58e08
 #ifdef HAVE_SYS_SOUNDCARD_H
8a58e08
 #include <sys/soundcard.h>
8a58e08
+#include <sys/ioctl.h>
8a58e08
 #define WANT_SOUND 1
8a58e08
 #else
8a58e08
 #ifdef HAVE_LINUX_SOUNDCARD_H
d8b0eca
@@ -525,7 +529,7 @@
8a58e08
     } *it, funcs[3] = {
8a58e08
       {getsockname, "getsockname", "Local binding"},
8a58e08
       {getpeername, "getpeername", "Remote binding"},
8a58e08
-      {NULL}
8a58e08
+      {NULL, NULL, NULL}
8a58e08
     };
8a58e08
     union {
8a58e08
       struct sockaddr sa;