PDA

View Full Version : Patches for login on Linux


misanthropicfnd
02-14-2002, 03:12 PM
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.