diff options
Diffstat (limited to 'databases/fastdb/files')
| -rw-r--r-- | databases/fastdb/files/patch-inc-sync_unix.h | 11 | ||||
| -rw-r--r-- | databases/fastdb/files/patch-makefile | 25 | 
2 files changed, 25 insertions, 11 deletions
diff --git a/databases/fastdb/files/patch-inc-sync_unix.h b/databases/fastdb/files/patch-inc-sync_unix.h new file mode 100644 index 000000000000..03960aba9b51 --- /dev/null +++ b/databases/fastdb/files/patch-inc-sync_unix.h @@ -0,0 +1,11 @@ +--- inc/sync_unix.h.orig	2009-11-20 20:53:02.000000000 +0800 ++++ inc/sync_unix.h	2010-08-16 13:56:02.000000000 +0800 +@@ -160,7 +160,7 @@ +     } +  +     static int getCurrentThreadId() { +-        return (int)pthread_self(); ++        return reinterpret_cast<unsigned long>(pthread_self()); +     } +  +     static int numberOfProcessors(); diff --git a/databases/fastdb/files/patch-makefile b/databases/fastdb/files/patch-makefile index 6036089e0f94..4d48060557ff 100644 --- a/databases/fastdb/files/patch-makefile +++ b/databases/fastdb/files/patch-makefile @@ -1,6 +1,6 @@ ---- makefile.orig	2009-03-01 20:30:50.000000000 +0800 -+++ makefile	2009-05-20 15:47:02.000000000 +0800 -@@ -37,8 +37,8 @@ +--- makefile.orig	2009-12-15 00:07:00.000000000 +0800 ++++ makefile	2010-08-16 13:53:31.000000000 +0800 +@@ -38,8 +38,8 @@   THRLIBS=   SUFF=   else @@ -11,7 +11,7 @@   SUFF=_r   endif -@@ -67,21 +67,21 @@ +@@ -65,23 +65,23 @@   WEB_EXAMPLES = cgistub bugdb clidb @@ -21,10 +21,12 @@   # DEFS macro is deprecatred, edit config.h file instead   DEFS = -Wno-invalid-offsetof - #CFLAGS = $(TFLAGS) -Iinc -c -Wall -O5 -g  -fPIC $(DEFS)  + ifeq ($(DEBUG), 1)  -CFLAGS = -c -Iinc -Wall -O0 -g -fPIC $(DEFS) $(TFLAGS)  +CFLAGS = -c -Iinc ${CXXFLAGS} -fPIC $(DEFS) $(TFLAGS) - #CFLAGS = -c -Iinc -Wall -O0 -fPIC -DFASTDB_DEBUG=DEBUG_TRACE -g $(DEFS) $(TFLAGS) + else + CFLAGS = -c -Iinc -Wall -O5 -g -fPIC $(DEFS) $(TFLAGS) + endif  -#SHFLAGS=-shared -Wl,-soname,$@  -SHFLAGS=-shared @@ -38,16 +40,17 @@   AR = ar   ARFLAGS = -cru -@@ -389,24 +389,20 @@ +@@ -433,16 +433,15 @@ - install: subsql cleanupsem installlib + install: subsql cleanupsem inspectsem installlib   	mkdir -p $(BINSPATH)  -	cp subsql $(BINSPATH)  -	strip $(BINSPATH)/subsql  -	cp cleanupsem $(BINSPATH) --	strip $(BINSPATH)/cleanupsem +-	cp inspectsem $(BINSPATH)  +	${BSD_INSTALL_PROGRAM} subsql $(BINSPATH)  +	${BSD_INSTALL_PROGRAM} cleanupsem $(BINSPATH) ++	${BSD_INSTALL_PROGRAM} inspectsem $(BINSPATH)   installlib: $(FASTDB_LIB) $(CLI_LIB) $(FASTDB_SHARED) $(CLI_SHARED)   	mkdir -p $(INCSPATH) @@ -58,8 +61,8 @@  +	${BSD_INSTALL_PROGRAM} $(FASTDB_LIB) $(CLI_LIB) $(FASTDB_SHARED) $(CLI_SHARED) $(LIBSPATH)   	(cd $(LIBSPATH) && ln -f -s $(FASTDB_SHARED) libfastdb$(SUFF).so \   	 && ln -f -s $(CLI_SHARED) libcli$(SUFF).so) --	if [ -f $(JNI_LIB) ]; then cp $(JNI_LIB) $(LIBSPATH); \ --	  cd $(LIBSPATH) && ln -f -s $(JNI_LIB) libjnicli.so; fi + 	if [ -f $(JNI_LIB) ]; then cp $(JNI_LIB) $(LIBSPATH); \ +@@ -450,7 +449,7 @@   uninstall:   	rm -fr $(INCSPATH)  | 
