EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   Patches for login on Linux (https://www.eqemulator.org/forums/showthread.php?t=422)

misanthropicfnd 02-14-2002 03:12 PM

Patches for login on Linux
 
Hi,

I have minilogin working for linux (at least well enough to allow logins--haven't fully tested) with the following changes:

login/makefile:
Add -DMINILOGIN to line 13

login/net.cpp:
Add at line 18:
#ifndef WIN32
#include <stdlib.h>
#include "../common/unix.h"
#endif

Remove the following lines starting at line 23:
#include <stdlib.h>
#include "../common/unix.h"

login/LWorld.cpp:
Add after line 69:
#ifndef WIN32
fcntl(send_socket, F_SETFL, O_NONBLOCK);
#endif

With this change login behaves like minilogin on win32. While this works for me, ymmv. If you have problems, post them & we'll see what can be done about them.

I've attached a zip of the changed files--unzip it in your login directory.


All times are GMT -4. The time now is 04:47 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.