$NetBSD$

--- src/zbuf/savemat_mod.c.orig	Tue Aug  3 22:17:23 2004
+++ src/zbuf/savemat_mod.c
@@ -56,8 +56,9 @@ operation of Software or Licensed Progra
  * Revised 7-23-91 to support ANSI-C
  */
 #include <stdio.h>
+#include <string.h>
 
-#ifdef ALPHA
+#if defined(ALPHA) || defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__)
 typedef struct {
      int type;   /* type */
      int mrows;  /* row dimension */
