--- configure.orig 2009-01-21 12:02:42.000000000 +0800 +++ configure 2009-01-21 12:04:58.000000000 +0800 @@ -5572,7 +5572,7 @@ #include /* to get time_t on SCO */ #include -#if defined(SVR4) && !defined(DGUX) +#if (defined(SVR4) || defined(__APPLE__)) && !defined(DGUX) #include #define utmp utmpx #else @@ -5581,6 +5581,10 @@ #ifdef __hpux #define pututline _pututline #endif +#ifdef __APPLE__ +#define pututline pututxline +#define getutent getutxent +#endif int main ()