Ken
Ken Wood, Austek Microsystems, Technology Park, Adelaide, SA 5095, Australia
INTERNET: kwood@austek.oz.au UUCP: uunet.uu.net!munnari!austek.oz.au!kwood
diff -c3 -r faces.dist/Makefile.dist faces/Makefile.dist
*** faces.dist/Makefile.dist Tue May 7 08:19:57 1991
--- faces/Makefile.dist Sun Jun 30 01:00:19 1991
***************
*** 215,220 ****
--- 215,226 ----
#
#USE_BZERO = -DUSE_BZERO
#------------------------------------------------------------------------
+ # If your system does not have the getcwd() library call, but instead
+ # uses the getwd() library call, then the following definition needs to
+ # be uncommented.
+ #
+ #USE_GETWD = -DUSE_GETWD
+ #------------------------------------------------------------------------
# If you are compiling the X11 version under MIT X11R3, you will need to
# uncomment the following definition:
#
***************
*** 264,271 ****
$(NAMEUNKNOWN) $(NEWSINCDIR) $(NISLOOKUP) $(NODOMAINS) \
$(NOINDEX) $(NOSELECT) $(NOUTIME) $(PERIOD) $(PLP) $(RAND) \
$(REVORDER) $(SELTYPE) $(SGIDEF) $(SPOOLDIR) $(SPOOLFILE) \
! $(SYSV) $(TTEXT) $(UPDATE) $(USE_BZERO) $(X11R3) \
! $(X11INCDIR) $(XVIEWINCDIR) $(DEBUG)
CCOMP = -O
CFLAGS = $(CCOMP) $(CDEFS)
#
--- 270,277 ----
$(NAMEUNKNOWN) $(NEWSINCDIR) $(NISLOOKUP) $(NODOMAINS) \
$(NOINDEX) $(NOSELECT) $(NOUTIME) $(PERIOD) $(PLP) $(RAND) \
$(REVORDER) $(SELTYPE) $(SGIDEF) $(SPOOLDIR) $(SPOOLFILE) \
! $(SYSV) $(TTEXT) $(UPDATE) $(USE_BZERO) $(USE_GETWD) \
! $(X11R3) $(X11INCDIR) $(XVIEWINCDIR) $(DEBUG)
CCOMP = -O
CFLAGS = $(CCOMP) $(CDEFS)
#
Common subdirectories: faces.dist/compface and faces/compface
Common subdirectories: faces.dist/facedir and faces/facedir
diff -c3 -r faces.dist/faces.h faces/faces.h
*** faces.dist/faces.h Wed Jun 19 15:55:48 1991
--- faces/faces.h Sun Jun 30 00:47:04 1991
***************
*** 286,291 ****
--- 286,295 ----
int utime P((char *, struct itimbuf *)) ;
#endif /*NOUTIME*/
+ #ifdef USE_GETWD
+ char *getcwd P((char *, int)) ;
+ #endif /*USE_GETWD*/
+
#ifdef AUDIO_SUPPORT
void check_audio P((char *)) ;
void play_sound P((char *)) ;
Common subdirectories: faces.dist/filters and faces/filters
diff -c3 -r faces.dist/main.c faces/main.c
*** faces.dist/main.c Wed Jun 19 15:55:45 1991
--- faces/main.c Sun Jun 30 01:01:45 1991
***************
*** 773,775 ****
--- 773,789 ----
}
return(!EQUAL(c_ptr, d_ptr)) ;
}
+
+
+ #ifdef USE_GETWD
+ char
+ *getcwd(buf, size)
+ char *buf;
+ int size;
+ {
+ if (buf == NULL)
+ buf = Malloc(size);
+
+ return(getwd(buf));
+ }
+ #endif /*USE_GETWD*/