FVWM: PATCH: fvwm-2.0.43

From: Larry Schwimmer <rosebud_at_cyclone.Stanford.EDU>
Date: Fri, 26 Jul 1996 00:19:55 -0700 (PDT)

1) Ultrix still lacks strdup. This should ensure that it is
   only used on Ultrix. [libs/Imakefile]

2) I don't like adding any default include and lib path for
   linking (in this case for Audio), but at least only add it if you
   are using that feature. [Imakefile]

3) As with 2.0.42, fvwm does not link properly on Solaris, at least
   under R6. [Imakefile]

4) strdup implementation to make Ultrix happy. [libs/strdup.c]

                        yours,
                                Larry Schwimmer
                                schwim_at_cyclone.stanford.edu
                                Distributed Computing Operations

--- libs/Imakefile.orig Fri Feb 16 17:17:27 1996
+++ libs/Imakefile Fri Jul 26 00:01:34 1996
_at_@ -4,6 +4,11 @@
 
 #include "../Fvwm.tmpl"
 
+#if defined(UltrixArchitecture)
+PORTSRC = strdup.c
+PORTOBJ = strdup.o
+#endif
+
 SRCS = \
         CatString3.c \
         CopyString.c \
_at_@ -23,7 +28,8 @@
         safemalloc.c \
         sleep.c \
         strncmp.c \
- wild.c
+ wild.c \
+ $(PORTSRC)
 
 OBJS = \
         CatString3.o \
_at_@ -44,7 +50,8 @@
         safemalloc.o \
         sleep.o \
         strncmp.o \
- wild.o
+ wild.o \
+ $(PORTOBJ)
 
 NormalLibraryTarget($(LIB), $(OBJS))
 
--- Fvwm.tmpl.orig Thu Jun 27 07:57:21 1996
+++ Fvwm.tmpl Thu Jul 18 15:22:20 1996
_at_@ -77,8 +77,10 @@
  * This currently only effects the FvwmAudio module.
  ***************************************************************************/
 #define HasRPlay NO /* YES */
+#if HasRPlay
 #define AudioLibs -L/usr/local/lib
 #define AudioIncs -I/usr/local/include
+#endif
 
 
 /**************************************************************************
_at_@ -359,7 +361,7 @@
                                                                         _at_@\
 program: $(OBJS) $(DEPLIBS) _at_@\
         RemoveTargetProgram($_at_) @@\
- $(CC) -o $_at_ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
+ $(CCENVSETUP) $(CC) -o $_at_ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
                                                                         _at_@\
 InstallProgram(program,$(FVWMDIR)) _at_@\
 InstallManPage(program,$(MANDIR)) _at_@\
_at_@ -384,7 +386,7 @@
                                                                         _at_@\
 program: $(OBJS) $(DEPLIBS) _at_@\
         RemoveTargetProgram($_at_) @@\
- $(CC) -o $_at_ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
+ $(CCENVSETUP) $(CC) -o $_at_ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
                                                                         _at_@\
 InstallProgram(program,$(FVWMBINDIR)) _at_@\
 InstallManPage(program,$(MANDIR)) _at_@\
--- /dev/null Thu Jul 25 23:57:15 1996
+++ libs/strdup.c Thu Jul 25 12:30:45 1996
_at_@ -0,0 +1,22 @@
+#include <string.h>
+
+/* strdup
+ *
+ * Make a duplicate of a string.
+ * For systems which lack this function.
+ *
+ * Larry Schwimmer (schwim_at_cs.stanford.edu)
+ */
+char *
+strdup (const char *input)
+{
+ register char *cp, *retval = NULL;
+
+ if (input == NULL)
+ return NULL;
+ if ((retval = cp = (char *)malloc((strlen(input)+1)*sizeof(char))) == NULL)
+ return NULL;
+ while ((*cp++ = *input++) != '\0')
+ ;
+ return retval;
+}
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Jul 26 1996 - 02:29:48 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:59 BST