Changes to libretroshare to make the system compile on Mac OSX 10.3

* minor changes to networking headers.
* addition of several virtual destructors (remove warnings)
* switched Makefiles to new system.
* added macosx specific configuration file.
* removed KadC compilation checks.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@324 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-02-03 06:17:33 +00:00
parent 789e3a1f62
commit 3451af6152
23 changed files with 288 additions and 279 deletions

View file

@ -1,28 +1,27 @@
RS_TOP_DIR = ..
include ../make.opt
##### Define any flags that are needed for this section #######
###############################################################
OBJ = rsthreads.o rsdir.o rsprint.o
# rsrand.o --- not really needed!
###############################################################
include $(RS_TOP_DIR)/scripts/config.mk
###############################################################
all : $(OBJ) librs dirtest dir2test
RSOBJ = rsthreads.o rsdir.o rsprint.o
TESTOBJ = dirtest.o dir2test.o
TESTS = dirtest dir2test
all: librs tests
dirtest: $(OBJ) dirtest.o
$(CC) $(CFLAGS) -o dirtest $(OBJ) dirtest.o $(RSLIBS)
$(CC) $(CFLAGS) -o dirtest dirtest.o $(OBJ) $(LIBS)
dir2test: $(OBJ) dir2test.o
$(CC) $(CFLAGS) -o dir2test $(OBJ) dir2test.o $(RSLIBS)
$(CC) $(CFLAGS) -o dir2test dir2test.o $(OBJ) $(LIBS)
librs: $(OBJ)
$(AR) r $(LIBRS) $(OBJ)
$(RANLIB) $(LIBRS)
.cc.o:
$(CC) $(CFLAGS) -c $<
clean:
-/bin/rm $(OBJ) dirtest.o dir2test.o
clobber: clean
-/bin/rm dirtest dir2test
###############################################################
include $(RS_TOP_DIR)/scripts/rules.mk
###############################################################

View file

@ -32,6 +32,7 @@
#ifndef WINDOWS_SYS
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>