Patches for some OS's.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have attached the patches necessary to use GIT on some Non Linux OS's.

--
Boyd Gerber <gerberb@xxxxxxxxx>
ZENEZ	1042 East Fort Union #135, Midvale Utah  84047
*** git-compat-util.h.orig Sun May 25 23:59:01 2008
--- git-compat-util.h Mon May 26 13:02:43 2008
***************
*** 39,45 ****
  /* Approximation of the length of the decimal representation of this type. */
  #define decimal_length(x)	((int)(sizeof(x) * 2.56 + 0.5) + 1)
  
! #if !defined(__APPLE__) && !defined(__FreeBSD__)
  #define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */
  #define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
  #endif
--- 39,45 ----
  /* Approximation of the length of the decimal representation of this type. */
  #define decimal_length(x)	((int)(sizeof(x) * 2.56 + 0.5) + 1)
  
! #if !defined(__APPLE__) && !defined(__FreeBSD__ ) && !defined(__USLC__) && !defined(_M_UNIX)
  #define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */
  #define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
  #endif
***************
*** 89,94 ****
  #include <grp.h>
  #define _ALL_SOURCE 1
  #endif
  
  #ifndef NO_ICONV
  #include <iconv.h>
--- 89,98 ----
  #include <grp.h>
  #define _ALL_SOURCE 1
  #endif
+ #if defined(__USLC__)
+ #undef _XOPEN_SOURCE
+ #include <grp.h>
+ #endif
  
  #ifndef NO_ICONV
  #include <iconv.h>
***************
*** 206,211 ****
  #endif
  
  #ifdef FREAD_READS_DIRECTORIES
  #define fopen(a,b) git_fopen(a,b)
  extern FILE *git_fopen(const char*, const char*);
  #endif
--- 210,216 ----
  #endif
  
  #ifdef FREAD_READS_DIRECTORIES
+ #if !defined (__USLC__)
  #define fopen(a,b) git_fopen(a,b)
  extern FILE *git_fopen(const char*, const char*);
  #endif
***************
*** 208,213 ****
  #ifdef FREAD_READS_DIRECTORIES
  #define fopen(a,b) git_fopen(a,b)
  extern FILE *git_fopen(const char*, const char*);
  #endif
  
  #ifdef SNPRINTF_RETURNS_BOGUS
--- 213,219 ----
  #if !defined (__USLC__)
  #define fopen(a,b) git_fopen(a,b)
  extern FILE *git_fopen(const char*, const char*);
+ #endif
  #endif
  
  #ifdef SNPRINTF_RETURNS_BOGUS
*** Makefile.orig Sun May 25 23:59:01 2008
--- Makefile Mon May 26 11:33:07 2008
***************
*** 165,170 ****
  # CFLAGS and LDFLAGS are for the users to override from the command line.
  
  CFLAGS = -g -O2 -Wall
  LDFLAGS =
  ALL_CFLAGS = $(CFLAGS)
  ALL_LDFLAGS = $(LDFLAGS)
--- 165,184 ----
  # CFLAGS and LDFLAGS are for the users to override from the command line.
  
  CFLAGS = -g -O2 -Wall
+ ifeq ($(uname_S),SCO_SV)
+   ifeq ($(uname_R),3.2)
+ #    CFLAGS = -g -O2
+     CFLAGS = -g
+   endif
+   ifeq ($(uname_R),5)
+     CFLAGS = -g -O2 -Wall
+ #    CFLAGS = -g -O2
+   endif
+ endif
+ ifeq ($(uname_S),UnixWare)
+     CFLAGS = -g -O2 -Wall
+ #    CFLAGS = -g -O2
+ endif
  LDFLAGS =
  ALL_CFLAGS = $(CFLAGS)
  ALL_LDFLAGS = $(LDFLAGS)
***************
*** 206,212 ****
  
  export prefix bindir gitexecdir sharedir template_dir htmldir sysconfdir
  
! CC = gcc
  AR = ar
  RM = rm -f
  TAR = tar
--- 220,227 ----
  
  export prefix bindir gitexecdir sharedir template_dir htmldir sysconfdir
  
! #CC = gcc
! CC = "cc"
  AR = ar
  RM = rm -f
  TAR = tar
***************
*** 555,560 ****
  endif
  ifeq ($(uname_S),GNU/kFreeBSD)
  	NO_STRLCPY = YesPlease
  endif
  ifeq ($(uname_S),Darwin)
  	NEEDS_SSL_WITH_CRYPTO = YesPlease
--- 570,611 ----
  endif
  ifeq ($(uname_S),GNU/kFreeBSD)
  	NO_STRLCPY = YesPlease
+ endif
+ ifeq ($(uname_S),UnixWare)
+ 	NEEDS_SOCKET = YesPlease
+ #	NEEDS_NSL = YesPlease
+ 	NEEDS_SSL_WITH_CRYPTO = YesPlease
+ 	NEEDS_LIBICONV = YesPlease
+ 	SHELL_PATH = /usr/local/bin/bash
+ 	NO_IPV6 = YesPlease
+ 	NO_HSTRERROR = YesPlease
+ #	BASIC_CFLAGS +=  -E -H
+ 	BASIC_CFLAGS +=  -Kalloca -Kthread
+ 	BASIC_CFLAGS += -I/usr/local/include
+ 	BASIC_LDFLAGS += -L/usr/local/lib
+ 	INSTALL = ginstall
+ 	TAR = gtar
+ 	NO_STRCASESTR = YesPlease
+ 	NO_MEMMEM = YesPlease
+ endif
+ ifeq ($(uname_S),SCO_SV)
+ 	NEEDS_SOCKET = YesPlease
+ #	NEEDS_NSL = YesPlease
+ 	NEEDS_SSL_WITH_CRYPTO = YesPlease
+ 	NEEDS_LIBICONV = YesPlease
+ 	SHELL_PATH = /usr/bin/bash
+ 	NO_IPV6 = YesPlease
+ #	NO_HSTRERROR = YesPlease
+ #	BASIC_CFLAGS +=  -E -H
+       ifeq ($(uname_R),5)
+ 	BASIC_CFLAGS +=  -Kalloca -Kthread
+       endif
+ #	BASIC_CFLAGS += -I/usr/local/include
+ #	BASIC_LDFLAGS += -L/usr/local/lib
+ 	NO_STRCASESTR = YesPlease
+ 	NO_MEMMEM = YesPlease
+ 	INSTALL = ginstall
+ 	TAR = gtar
  endif
  ifeq ($(uname_S),Darwin)
  	NEEDS_SSL_WITH_CRYPTO = YesPlease
*** progress.c.orig Sun May 25 23:59:01 2008
--- progress.c Tue May 27 16:54:15 2008
***************
*** 241,247 ****
  	*p_progress = NULL;
  	if (progress->last_value != -1) {
  		/* Force the last update */
! 		char buf[strlen(msg) + 5];
  		struct throughput *tp = progress->throughput;
  		if (tp) {
  			unsigned int rate = !tp->avg_misecs ? 0 :
--- 241,248 ----
  	*p_progress = NULL;
  	if (progress->last_value != -1) {
  		/* Force the last update */
! 		/* char buf[strlen(msg) + 5]; */
! 		char *buf = malloc (strlen(msg) + 5 );
  		struct throughput *tp = progress->throughput;
  		if (tp) {
  			unsigned int rate = !tp->avg_misecs ? 0 :

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux