Print this page
make: unifdef for other OSes (undefined)
*** 59,71 ****
# include <rx/api.h>
#endif
#include <signal.h>
- #ifndef HP_UX
# include <stropts.h>
- #endif
#include <sys/errno.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/utsname.h> /* uname() */
--- 59,69 ----
*** 3557,3571 ****
switch (child) {
case -1:
break;
case 0:
enable_interrupt((void (*) (int))SIG_DFL);
- #ifdef linux
- (void) signal(SIGUSR1, Avo_PollResultsAction_Sigusr1Handler);
- #else
(void) sigset(SIGUSR1, Avo_PollResultsAction_Sigusr1Handler);
- #endif
pollResultsAction(outFn, errFn);
exit(0);
break;
default:
--- 3555,3565 ----
*** 3615,3640 ****
outFn, strerror(errno));
exit(1);
}
while (!pollResultsActionTimeToFinish && stat(outFn, &statbuf) == 0) {
- #ifdef linux
- if ((statbuf.st_mtime > file_time)
- ) {
- file_time = statbuf.st_mtime;
- rxmGetNextResultsBlock(fd);
- }
- #else
if ((statbuf.st_mtim.tv_sec > file_time) ||
((statbuf.st_mtim.tv_sec == file_time) &&
(statbuf.st_mtim.tv_nsec > file_time_nsec))
) {
file_time = statbuf.st_mtim.tv_sec;
file_time_nsec = statbuf.st_mtim.tv_nsec;
rxmGetNextResultsBlock(fd);
}
- #endif
us_sleep(STAT_RETRY_SLEEP_TIME);
}
// Check for the rest of output
rxmGetNextResultsBlock(fd);
--- 3609,3626 ----