Subject: bin/1872: tn3270 dooesn't compile
To: None <gnats-bugs@gnats.netbsd.org>
From: Lennart Augustsson <augustss@cs.chalmers.se>
List: netbsd-bugs
Date: 12/31/1995 03:53:02
>Number:         1872
>Category:       bin
>Synopsis:       tn3270 dooesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 30 22:05:02 1995
>Last-Modified:
>Originator:     Lennart Augustsson
>Organization:
Chalmers University
>Release:        NetBSD-current 95-12-29
>Environment:
	
System: NetBSD calvin.cs.chalmers.se 1.1A NetBSD 1.1A (CALVIN) #0: Sat Dec 30 18:19:33 MET 1995 augustss@calvin.cs.chalmers.se:/usr/src/sys/arch/i386/compile/CALVIN i386


>Description:
With the latest versioon if FD_ZERO and -Werror tn3270 will not
compile.

>How-To-Repeat:
	Try compiling it
>Fix:
Apply this patch.  Or make your own improved version of it.

*** /usr/src/usr.bin/tn3270/general/general.h.orig	Sat Dec 30 17:03:40 1995
--- /usr/src/usr.bin/tn3270/general/general.h	Sat Dec 30 17:08:54 1995
***************
*** 49,55 ****
  #define	ClearArray(x)		memset((char *)x, 0, sizeof x)
  #endif	/* defined(unix) */
  
! #if	defined(unix)		/* Define BSD equivalent mem* functions */
  #define	memcpy(dest,src,n)	bcopy(src,dest,n)
  #define	memmove(dest,src,n)	bcopy(src,dest,n)
  #define	memset(s,c,n)		if (c == 0) { \
--- 49,55 ----
  #define	ClearArray(x)		memset((char *)x, 0, sizeof x)
  #endif	/* defined(unix) */
  
! #if	defined(unix) && !defined(__NetBSD__)		/* Define BSD equivalent mem* functions */
  #define	memcpy(dest,src,n)	bcopy(src,dest,n)
  #define	memmove(dest,src,n)	bcopy(src,dest,n)
  #define	memset(s,c,n)		if (c == 0) { \
***************
*** 63,66 ****
  				    } \
  				}
  #define	memcmp(s1,s2,n)		bcmp(s1,s2,n)
! #endif	/* defined(unix) */
--- 63,66 ----
  				    } \
  				}
  #define	memcmp(s1,s2,n)		bcmp(s1,s2,n)
! #endif	/* defined(unix) && !defined(__NetBSD__) */
>Audit-Trail:
>Unformatted: