Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patches for Solaris




	Included below are some pathces I used to get things going under 
Solaris2.4.  Hopefully they are all that are needed.  Maybe someone could 
roll them into upcoming versions?  These are against version 0.91.7,... I 
just got 0.91.8 and haven't had a chance to compile it yet :-(

	Thanks,
	Ed

+-------------------------------------------------------------------------+
| Ed Phillips <flaregun@udel.edu> University of Delaware (302) 831-6082   |
| Jr Systems Programmer, Network and Systems Services, Info. Technologies |
| Public key footprint: 1C D4 AC C2 A3 D5 97 AA  DB 3B D8 85 88 E7 40 B8  |
| Finger flaregun@udel.edu for PGP public key                             |
+-------------------------------------------------------------------------+

*** ./common/porting.c_orig	Tue Feb 14 18:33:48 1995
--- ./common/porting.c	Tue Feb 14 18:34:41 1995
***************
*** 204,210 ****
  }
  
  /* This seems to be lacking on some system */
! #if defined(SVR4) && !defined(__sgi__)
  int strncasecmp(char *s1, char *s2, int n)
  {
    register int c1, c2;
--- 204,210 ----
  }
  
  /* This seems to be lacking on some system */
! #if defined(SVR4) && !defined(__sgi__) && !defined(sun)
  int strncasecmp(char *s1, char *s2, int n)
  {
    register int c1, c2;



*** ./lib/xpmtopix.c_orig	Wed Feb 15 10:32:39 1995
--- ./lib/xpmtopix.c	Wed Feb 15 10:37:41 1995
***************
*** 197,203 ****
  }
  
  
! #ifdef SVR4
  int strcasecmp(char *s1, char *s2)
  {
    register int c1, c2;
--- 197,203 ----
  }
  
  
! #if defined(SVR4) && !defined(sun)
  int strcasecmp(char *s1, char *s2)
  {
    register int c1, c2;



*** ./eutl/Makefile_orig	Wed Feb 15 09:20:38 1995
--- ./eutl/Makefile	Wed Feb 15 09:28:45 1995
***************
*** 4,12 ****
  
  TARGET=libeutl.a
  SUBDIRS=include errlib tcplib xmalloc debuglib dynarray xfile chain-hash arglist
! CC=gcc
  DEST=libeutl.a
! CFLAGS=-g -Wall
  PASSTHROUGH= CC="$(CC)" CFLAGS="$(CFLAGS) -I../include"
  
  all: $(TARGET)
--- 4,12 ----
  
  TARGET=libeutl.a
  SUBDIRS=include errlib tcplib xmalloc debuglib dynarray xfile chain-hash arglist
! CC=cc
  DEST=libeutl.a
! CFLAGS=-fast
  PASSTHROUGH= CC="$(CC)" CFLAGS="$(CFLAGS) -I../include"
  
  all: $(TARGET)
***************
*** 21,27 ****
  		(cd $$i;$(MAKE) $(PASSTHROUGH) arlib);\
  	done
  	ar ru $(TARGET) `cat */libfiles`
! 	-ranlib $(TARGET)
  
  libeutl_d.a:
  	$(MAKE) TARGET=libeutl_d.a CFLAGS=-g
--- 21,27 ----
  		(cd $$i;$(MAKE) $(PASSTHROUGH) arlib);\
  	done
  	ar ru $(TARGET) `cat */libfiles`
! #	-ranlib $(TARGET)
  
  libeutl_d.a:
  	$(MAKE) TARGET=libeutl_d.a CFLAGS=-g



*** ./eutl/include/libc.h_orig	Wed Feb 15 09:25:18 1995
--- ./eutl/include/libc.h	Wed Feb 15 10:24:59 1995
***************
*** 2,11 ****
--- 2,16 ----
  
  #include <stdarg.h>
  #include <stdio.h>
+ #include <stdlib.h>
  #include <sys/types.h>
  #include <time.h>
  
+ #define bzero(a,n) memset((void *)(a), 0, (n))
+ #define bcopy(a,b,n) memcpy((void *)(b), (void *)(a), (n))
+ 
  #if defined(sparc) || defined(__sparc__)
+ /*
  #define NEED_PRINTF 1
  #define NEED_SOCKET 1
  #define NEED_FILE 1
***************
*** 14,19 ****
--- 19,25 ----
  #define NEED_STRING 1
  #define NEED_ERROR 1
  #define NEED_MALLOC 1
+ */
  #endif
  
  #ifdef __hppa__



*** ./eutl/arglist/arglist.c_orig	Wed Feb 15 09:27:17 1995
--- ./eutl/arglist/arglist.c	Wed Feb 15 09:28:17 1995
***************
*** 69,74 ****
--- 69,75 ----
       case Buffer: free(a->u.b.b);
        break;
       default:
+       break;
      }
    }
    dyn_destroy(gone->a);