View Single Post
  #2  
Old 08-11-2008, 12:18 AM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

It's kinda funny cause I was just thinking the same thing right before I pulled up the forums

I haven't had a chance to look, but I wonder if this has something to do with the differences in a WIN32 build vs everything else (all of the #ifdef WIN32 in the source). Here are some excerpts from the source with the Windows stuff in Blue and the Debian stuff in Red:
world/LoginServer.h
Code:
   29 #ifdef WIN32
   30 	void AutoInitLoginServer(void *tmp);
   31 #else
   32 	void *AutoInitLoginServer(void *tmp);
   33 #endif
world/LoginServer.cpp
Code:
   28 #ifdef WIN32
   29 	#include <process.h>
   30 	#include <windows.h>
   31 	#include <winsock.h>
   32 
   33 	#define snprintf	_snprintf
   34 	#define vsnprintf	_vsnprintf
   35 	#define strncasecmp	_strnicmp
   36 	#define strcasecmp	_stricmp
   37 #else // Pyro: fix for linux
   38 	#include <sys/socket.h>
   39 #ifdef FREEBSD //Timothy Whitman - January 7, 2003
   40 	#include <sys/types.h>
   41 #endif
   42 	#include <netinet/in.h>
   43 	#include <arpa/inet.h>
   44 	#include <pthread.h>
   45 	#include <unistd.h>
   46 	#include <errno.h>
   47 
   48 	#include "../common/unix.h"
   49 
   50 	#define SOCKET_ERROR -1
   51 	#define INVALID_SOCKET -1
   52 	extern int errno;
   53 #endif

  188 #ifdef WIN32
  189 	void AutoInitLoginServer(void *tmp) {
  190 #else
  191 	void *AutoInitLoginServer(void *tmp) {
  192 #endif

  197 #ifndef WIN32
  198 	return 0;
  199 #endif
I think it might have to do with AutoInitLoginServer, but I'm not really sure.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote