Git development
 help / color / mirror / Atom feed
* Patches for some OS's.
@ 2008-06-05 17:16 Boyd Lynn Gerber
  2008-06-05 18:37 ` Johannes Schindelin
  0 siblings, 1 reply; 5+ messages in thread
From: Boyd Lynn Gerber @ 2008-06-05 17:16 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: TEXT/PLAIN, Size: 169 bytes --]

Hello,

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

--
Boyd Gerber <gerberb@zenez.com>
ZENEZ	1042 East Fort Union #135, Midvale Utah  84047

[-- Attachment #2: git-compat-util.h.patch --]
[-- Type: TEXT/x-patch, Size: 2040 bytes --]

*** 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

[-- Attachment #3: Makefile.patch --]
[-- Type: TEXT/x-patch, Size: 2486 bytes --]

*** 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

[-- Attachment #4: progress.c.patch --]
[-- Type: TEXT/x-patch, Size: 672 bytes --]

*** 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 :

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-06-05 19:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05 17:16 Patches for some OS's Boyd Lynn Gerber
2008-06-05 18:37 ` Johannes Schindelin
2008-06-05 18:49   ` Boyd Lynn Gerber
2008-06-05 19:07     ` Boyd Lynn Gerber
2008-06-05 19:35       ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox