From 656e6b10c975fb1f5ed7105be2faf31119b5eaca Mon Sep 17 00:00:00 2001 From: Nishi Date: Sun, 3 Nov 2024 13:49:26 +0000 Subject: [PATCH] fixing for solaris git-svn-id: file:///raid/svn-personal/tewi/trunk@405 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Makefile | 8 ++++---- VC6Compat/stdint.h | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e7bf45d..6f913cf 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX) all: ./Server $(MODULE) prepare-config: - if [ '!' -e config.h ]; then cp config.h.tmpl config.h ; fi + if [ '!' -f config.h ]; then cp config.h.tmpl config.h ; fi src-archive: clean @svn cleanup --remove-unversioned @@ -48,10 +48,10 @@ src-archive: clean install: all ./Tool/genconf ./Tool/itworks -mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib/tewi $(DESTDIR)$(PREFIX)/etc $(DESTDIR)$(PREFIX)/www - if [ '!' -e $(DESTDIR)$(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) lib/tewi `echo $(LIBSUF) | sed 's/\.//g'` > $(DESTDIR)$(PREFIX)/etc/tewi.conf || ( rm $(DESTDIR)$(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi + if [ '!' -f $(DESTDIR)$(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) lib/tewi `echo $(LIBSUF) | sed 's/\.//g'` > $(DESTDIR)$(PREFIX)/etc/tewi.conf || ( rm $(DESTDIR)$(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi cp mime.types $(DESTDIR)$(PREFIX)/ - if [ '!' -e $(DESTDIR)$(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(DESTDIR)$(PREFIX)/www/index.html || ( rm $(DESTDIR)$(PREFIX)/www/index.html ; exit 1 ) ) ; fi - if [ '!' -e $(DESTDIR)$(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(DESTDIR)$(PREFIX)/www/ || ( rm $(DESTDIR)$(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi + if [ '!' -f $(DESTDIR)$(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(DESTDIR)$(PREFIX)/www/index.html || ( rm $(DESTDIR)$(PREFIX)/www/index.html ; exit 1 ) ) ; fi + if [ '!' -f $(DESTDIR)$(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(DESTDIR)$(PREFIX)/www/ || ( rm $(DESTDIR)$(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi -cp ./Server/tewi $(DESTDIR)$(PREFIX)/bin/ -cp ./Server/tewi.exe $(DESTDIR)$(PREFIX)/bin/ -cp ./Server/tewi.nlm $(DESTDIR)$(PREFIX)/bin/ diff --git a/VC6Compat/stdint.h b/VC6Compat/stdint.h index 32725c4..7149ee3 100644 --- a/VC6Compat/stdint.h +++ b/VC6Compat/stdint.h @@ -11,6 +11,8 @@ typedef u_int32_t uint32_t; typedef u_int64_t uint64_t; #define INT32_MAX 0x7fffffff +#elif defined(__sun__) +#include #else typedef unsigned char uint8_t; typedef unsigned short uint16_t; -- 2.43.0