$NetBSD: patch-ah,v 1.3 2011/09/19 07:15:52 dholland Exp $

- use modern C
- silence warnings about assignments within if conditions

--- lib/Xmc/Open.c.orig	1998-02-12 14:13:22.000000000 +0000
+++ lib/Xmc/Open.c
@@ -32,6 +32,10 @@
 #ifdef SVR4
 #include <sys/filio.h>
 #endif
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
 #include <fcntl.h>
 #include <netdb.h>
 #include <xmc.h>
@@ -118,7 +122,7 @@ XmcOpen
 #endif
 #endif
 #endif
-      if (muxp = (Mux *)malloc(sizeof(Mux))) {
+      if ((muxp = malloc(sizeof(Mux))) != NULL) {
          muxp->fd = fd;
          muxp->hostname = hostname;
          Xmc_zerobuf(&muxp->inbuf);
