On Mon, Apr 02, 2007 at 11:58:28AM -0400, Alfred von Campe wrote: > I can't get the simple program below to compile on CentOS 5 beta. It compiles > (and runs) just fine on CentOS 4.4, and I'm using gettid() as described in the > man page. I wonder if this is a problem with RHEL 5 as well, but I don't have a > system to test on. I also wonder if this is a gcc 4.1.1 issue or something > missing in CentOS 5. > > The issue is that the _syscall0 macro is not defined anywhere. If I copy and > paste the following definition for _syscall0 from a CentOS 4.4 system into the > test program, it works just fine: > > #define _syscall0(type,name) \ > type name(void) \ > {\ > return syscall(__NR_##name);\ > } > > Has anyone else run into this problem? > > Alfred I've got an APP at work that will need to be working on RH5 and possibly Centos 5 that uses gettid(), so I'm going to hang onto your posting just in case it is a problem in the real release. Haven't tried RH5 yet, but I will be (and Centos, too, once it comes out). Thanks for the heads-up. -- ---- Fred Smith -- fredex at fcshome.stoneham.ma.us ----------------------------- But God demonstrates his own love for us in this: While we were still sinners, Christ died for us. ------------------------------- Romans 5:8 (niv) ------------------------------ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20070402/9247bb0c/attachment-0005.sig>