[comp.windows.x] patch for vtwm 3.0

dme@doc.ic.ac.uk (Dave Edmondson) (11/22/90)

the vtwm on expo has the minor problem that the strdup in doors.c is
ifdeffed for `ibm', no `NOSTRDUP', as i mistakenly reported.  this
patch for doors.c should fix that problem.  the patch will soon be on
expo as vtwm-3.0-p1.

dave.

#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  gamma.1
# Wrapped by dme@stork.doc.ic.ac.uk on Thu Nov 22 09:57:35 1990
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'gamma.1' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'gamma.1'\"
else
echo shar: Extracting \"'gamma.1'\" \(706 characters\)
sed "s/^X//" >'gamma.1' <<'END_OF_FILE'
X*** /tmp/,RCSt1029360	Thu Nov 22 09:51:45 1990
X--- doors.c	Wed Nov 21 11:27:33 1990
X***************
X*** 24,30 ****
X  #include "desktop.h"
X  #include "add_window.h"
X  
X! #ifdef ibm
X  char *strdup(s1) 
X  char * s1;
X  {  
X--- 24,30 ----
X  #include "desktop.h"
X  #include "add_window.h"
X  
X! #ifdef NOSTRDUP
X  char *strdup(s1) 
X  char * s1;
X  {  
X***************
X*** 33,39 ****
X  	s2 = malloc((unsigned) strlen(s1)+1);
X  	return (s2 == NULL ? NULL : strcpy(s2,s1));
X  }
X! #endif /* ibm */
X  
X  extern TwmDoor *door_add_internal();
X  
X--- 33,39 ----
X  	s2 = malloc((unsigned) strlen(s1)+1);
X  	return (s2 == NULL ? NULL : strcpy(s2,s1));
X  }
X! #endif /* NOSTRDUP */
X  
X  extern TwmDoor *door_add_internal();
X  
END_OF_FILE
if test 706 -ne `wc -c <'gamma.1'`; then
    echo shar: \"'gamma.1'\" unpacked with wrong size!
fi
# end of 'gamma.1'
fi
echo shar: End of shell archive.
exit 0
--
Dave Edmondson, Systems Support.                     Opinions are all my own.
Department of Computing, Imperial College of Science, Technology and Medicine,
180 Queen's Gate, London SW7 1BZ. phone: 071-589-5111 x5085 fax: 071-581-8024
         email: dme@doc.ic.ac.uk, ..!ukc!icdoc!dme, dme@athena.mit.edu
  ``Be selective, be objective, be an asset to the collective'' -- Jazzy B