]> Nishi Git Mirror - rbuild.git/commitdiff
stuff
authorNishi <nishi@nishi.boats>
Sat, 12 Oct 2024 01:04:13 +0000 (01:04 +0000)
committerNishi <nishi@nishi.boats>
Sat, 12 Oct 2024 01:04:13 +0000 (01:04 +0000)
git-svn-id: file:///raid/svn-personal/rbuild/trunk@21 c68d3453-7f82-0740-9748-1d72386a946b

Makefile
Platform/unixware.mk [new file with mode: 0644]
Server/server.c

index 06052522ad3003f6fa446637f949f3d25ca52960..5176967cf38a2a37f4a26f819781c88cd38b5889 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,9 +10,12 @@ FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM)
 all: ./Common ./Server ./Client
 
 src-archive: clean
+       rm -f *.tar.gz
+       rm -f /tmp/rbuild-*.tar.gz
        mkdir -p /tmp/rbuild-`grep "define RBUILD_VERSION" config.h | sed 's/#define RBUILD_VERSION //' | sed 's/"//g'`
        cp -rf * /tmp/rbuild-`grep "define RBUILD_VERSION" config.h | sed 's/#define RBUILD_VERSION //' | sed 's/"//g'`/
        cd /tmp && tar --exclude .svn -czvf rbuild-`grep "define RBUILD_VERSION" rbuild-*/config.h | sed 's/#define RBUILD_VERSION //' | sed 's/"//g'`.tar.gz rbuild-`grep "define RBUILD_VERSION" rbuild-*/config.h | sed 's/#define RBUILD_VERSION //' | sed 's/"//g'`/
+       rm -rf /tmp/rbuild-`grep "define RBUILD_VERSION" config.h | sed 's/#define RBUILD_VERSION //' | sed 's/"//g'` 
        mv /tmp/rbuild-`grep "define RBUILD_VERSION" config.h | sed 's/#define RBUILD_VERSION //' | sed 's/"//g'`.tar.gz ./
 
 get-version:
diff --git a/Platform/unixware.mk b/Platform/unixware.mk
new file mode 100644 (file)
index 0000000..80ce59d
--- /dev/null
@@ -0,0 +1,8 @@
+# $Id$
+
+CC = cc
+AR = ar
+CFLAGS = -I $(PWD)/Common -DHAS_PLAIN_AUTH -DHAS_NONE_AUTH -DHAS_CRYPT_AUTH
+LDFLAGS =
+LIBS = -lcrypt
+EXEC =
index 8353c6604374bf2e42d47cae40144ce0df521679..d79ad69c66bd1bf0c7c1fb8528678d61b3e3f32f 100644 (file)
@@ -8,19 +8,21 @@
 #include "rbs_auth.h"
 #include "rbs_task.h"
 
+#include <time.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <string.h>
 #include <signal.h>
+#include <sys/types.h>
 
 #ifdef __MINGW32__
 #define WINSOCK
 #include <winsock2.h>
 #include <process.h>
 #else
-#include <sys/socket.h>
 #include <arpa/inet.h>
+#include <sys/socket.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>
 #include <sys/select.h>