Hi all, In a discussion with Yue Wang he convinced me that it would be better to use uname() for finding os.name instead of the current jungle of #ifdefs. Because I do not want to alter the lua return values, that means I will have to interpret the contents of the returned structure a bit. To do that, I would appreciate it if the people on a non-linux32intel platform would compile and run the attached minimalistic C file. Thanks in advance, Taco
Taco Hoekwater writes:
To do that, I would appreciate it if the people on a non-linux32intel platform would compile and run the attached minimalistic C file.
Hi Taco, I get: sysname: Linux nodename: zaphod release: 2.6.20-gentoo-r8 version: #1 SMP Mon Apr 14 02:07:52 CEST 2008 machine: x86_64 I suppose you want to determine the values at compile time. Then you can use config.guess (config.sub is needed too, but nothing else from autoconf). If it doesn't work then you know that you are on Windows. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha@web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ----------------------------------------------------------------------------
On Wed, May 21, 2008 at 5:03 PM, Taco Hoekwater
Hi all,
In a discussion with Yue Wang he convinced me that it would be better to use uname() for finding os.name instead of the current jungle of #ifdefs.
Because I do not want to alter the lua return values, that means I will have to interpret the contents of the returned structure a bit. To do that, I would appreciate it if the people on a non-linux32intel platform would compile and run the attached minimalistic C file.
In a MacBook running Leopard, I got the following: sysname: Darwin nodename: Lamb.local release: 9.2.2 version: Darwin Kernel Version 9.2.2: Tue Mar 4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386 machine: i386 Best -- Radhakrishnan
participants (3)
-
Radhakrishnan CV
-
Reinhard Kotucha
-
Taco Hoekwater