[Freeciv-Dev] patch: Check for AMIGA in shared.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
shared.diff
Description: Text document
- [Freeciv-Dev] patch: Check for AMIGA in shared.c,
Sebastian Bauer <=
|
|