Previously, I had kludged in a stub for millitimer to get timemodule.c
to compile under AIX ( without this, I was unable to find any
combination of compiler switches that would build. )
The problem appears to be the nesting of a "#ifdef BSD_TIME" within an
"#ifdef unix" block in timemodule.c .
I have changed that "#ifdef unix" to "#if defined(unix) | defined(BSD_TIME)",
and added a "-Uunix" to the makefile line for timemodule to undefine
unix, as the -Dunix has been added to the ADDCFLAGS elsewhere.
Sorry, I can't send diff's at the moment - these are edited 3
generations from the distribution. Sometime, after I figure out the
other AIX patched needed, I'll try to reload the original distribution
and make some diff patches.
This patch gets millitimer and millisleep to work properly on AIX.
The broken posixmodule ( listdir and chmod ) I had earlier observed
was due to trying to build without -Dunix.
( The X11 coredumps are unrelated. )
Here are the commands generated by the Makefile
cc -DHAVE_STDLIB -DNOALTTZ -DOLDTZ -Dunix -c -DSYSV -DDO_TIMES posixmodule.c
cc -DHAVE_STDLIB -DNOALTTZ -DOLDTZ -Dunix -c -DSYSV -DBSD_TIME -Uunix timemodule.c
- Steve Majewski (804-982-0831) <sdm7g@Virginia.EDU>
- UVA Department of Molecular Physiology and Biological Physics