Complete.Org: Mailing Lists: Archives: freeciv-dev: August 1999:
[Freeciv-Dev] patch: Check for AMIGA in shared.c
Home

[Freeciv-Dev] patch: Check for AMIGA in shared.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] patch: Check for AMIGA in shared.c
From: sebauer@xxxxxxxxxxx (Sebastian Bauer)
Date: Thu, 12 Aug 1999 14:16:52 +0100

Hi,

This patches add a additional check for AMIGA in dont_run_as_root,
but dont_run_as_root is only not executed if not compiling with
GNUC on the Amiga.

I know this should done via a general check, but I actually
have no idea how this could look like.

A possiblity would be to launch a test programm which returns
a failure when running on the systems where the user is always
root.
But I ask me if the test programm is necesarry, because
for the "Not GNU Amiga" compile I must write an own config.h
anywhy (I cannot use configure). This is probably the same in
the Mac version. What's about __EMX__?
If so, we could simply define HAVE_ONLYROOT (or similiar)
in acconfig.h (and in config.h.in) and check for it in shared.c.
But I don't know if this is possible, because this define
wouldn't not be touched in configure?
(That means I don't know if autoheader will create a entry
in config.h.in automatically if configure.in doesn't use
HAVE_ONLYROOT)

BTW
When is my clinet.c patch and the HAVE_SIGPIPE patch integrated
into freeciv?

There're probably not the most important ones but they simplify the
development of other clients on other platforms.

bye,
Sebastian Bauer

Attachment: shared.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]